致命错误:AST文件格式错误或损坏 - Xcode [英] fatal error: malformed or corrupted AST file - Xcode

查看:408
本文介绍了致命错误:AST文件格式错误或损坏 - Xcode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最新版本的Xcode中构建我的应用程序时出现此错误:

I get this error when building my app in the latest version of Xcode:


致命错误:AST文件格式错误或损坏:'无法加载模块
/Users/me/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP/Darwin.pcm:
file not found'注意:修改系统头后,请删除
模块缓存
'/ Users / me / Library / Developer / Xcode / DerivedData / ModuleCache / XYZYIE6ZV0OP'
1生成错误。

fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/me/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP/Darwin.pcm": file not found' note: after modifying system headers, please delete the module cache at '/Users/me/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP' 1 error generated.

当我导航到:


/ Users / me / Library / Developer / Xcode / DerivedData / ModuleCache

/Users/me/Library/Developer/Xcode/DerivedData/ModuleCache

我可以看到目录'XYZYIE6ZV0OP'不存在。

I can see that the directory 'XYZYIE6ZV0OP' doesn't exist.

有谁知道如何解决这个问题?我不能删除目录中的任何内容,如错误消息的第二部分所示,因为该目录不存在!

Does anybody know how I can resolve this? I cannot delete anything at the directory as suggested in the 2nd part of the error message as that directory doesn't exist!

推荐答案

有同样的问题。清除派生数据文件夹为我解决了这个问题。在Xcode中,转到Window-> Organizer-> Projects,选择您的项目,然后按Derived data旁边的Delete ...按钮。

Had same problem. Clearing derived data folder solved the issue for me. In Xcode, go to Window->Organizer->Projects, select your project, and press the "Delete..." button next to "Derived data".

如果这不起作用,你可以尝试做一个Product-> Clean( Cmd + Shift + k )。

If this doesn't work, you can try to do a Product->Clean (Cmd+Shift+k).

这篇关于致命错误:AST文件格式错误或损坏 - Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆