PCH 文件报错

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



展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 撸撸猫 设计师: 设计师小姐姐
应支付0元
点击重新获取
扫码支付

支付成功即可阅读