fatal error: malformed or corrupted AST file: 'Unable to load module Darwin.pcm 问题解决

时间:2024-01-02 09:01:44

xcode5 编译project。偶然碰到了以下的问题:

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

解决的方法为:

点击XCODE的菜单Window,然后选择Organizer,在弹出的对话框的最上面选择Projects, 例如以下对话框。

fatal error: malformed or corrupted AST file: 'Unable to load module Darwin.pcm 问题解决

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGFuZ2VsZGVw/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="" />

然后选择右边的 Delete button。删除继承的数据,在编译就可以。