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



xcode5 编译工程,偶然碰到了下面的问题:

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 问题解决_第1张图片


然后选择右边的 Delete 按钮,删除继承的数据,在编译即可。


你可能感兴趣的:(fatal error: malformed or corrupted AST file: 'Unable to load module Darwin.pcm 问题解决)