PCH 文件报错

来源:互联网 发布:网络摄像机通用软件 编辑:程序博客网 时间:2024/05/18 00:33

1).pch文件路径不对:


~/user.pch' file not found

解决方法:

选中工程名 —> 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



1 0