pch文件出现no such file or directory错误

一般出现这种情况是由于项目直接拷贝到其他电脑上运行...

clang: error: no such file or directory: '/demo2/控件代码/13/Recorder/Recorder_Prefix.pch'

clang: error: no input files
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
解决办法: 在你的主工程文件 target搜素,pch ,找到Prefix Header    把它后面的值,都删除,然后重新改成pch文件所在路径即可。

原文地址:https://www.cnblogs.com/Rinpe/p/5215746.html