您的位置:首页 > 其它

【解决方法】PCH 文件报错

2015-11-12 16:34 232 查看
1).pch文件路径不对:

~/user.pch' file not found


解决方法[u]:

[/u]

选中工程名 —> Build Settings —> 搜索Language
—> 找到Apple LLVM 7.0 - Language
—> 找到Prefix Header项
—>双击填写.pch文件的路径
—> 运行

2)报错:

error: PCH was compiled with module cache path '/Users/zmit/Desktop/WaterWave-master
/DerivedData/ModuleCache/OH9RS6URELRZ', but the path is currently '/Users/zmit/Desktop
/chen/BearDemo/WaterWave-master/DerivedData/ModuleCache/OH9RS6URELRZ'


解决方法:



1.Close your project or workspace.

2.In Finder: ⇧shift+⌘cmd+G

3.Paste: ~/Library/Developer/Xcode/DerivedData/

4.Delete the ModuleCache folder and empty trash.

5.Open up your project.

6.Clean: ⇧shift+⌘cmd+K

7.Build: ⌘cmd+B

持续更新中.....
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: