fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/xxx/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.
经过考察原来是XCode在捣鬼,解决方法很简单:
只需要清除继承数据文件夹即可。具体操作为:进入XCode的Window,选择Organizer->Projects,然后选择出现问题的 project ,点击delete button删除Derived data.
重新编译项目,即可。