【解决方法】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



持续更新中.....

你可能感兴趣的:(ios,xcode,header,prefix,pch,llvm)