iOS xcode缓存问题
2015-12-28 14:53
417 查看
Question:
When I try to build my app in Xcode, I get this error message:
PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27))
Answer:
This is often a caching problem. Usually it can be resolved by holding down the Option key and choosing Product > Clean
There is a Product > Clean, but it does a less thorough job. Some people can get buy with Product > Clean, for most Product > Clean Build Folder... is sufficient, and others need the manual removal as indicated in
之前有在代码全部正确的情况下,遇到过下面的编译错误:
fatal error: file ‘.....h‘ has been modified since the precompiled header ‘.....‘ was built.
note: please rebuld precompiled header ‘....‘.
解决方法是删除文件夹下/Users/username/Library/Developer/Xcode/DerivedData/ModuleCache下的所有文件,然后重新编译,一般就会好了.
但是偶尔在删除ModuleCache下文件之后,不仅没有解决上面的问题,还会报下面的错误:
fatal error: malformed or corrupted AST file: ‘Unable to load module "/Users/username/Library/Developer/Xcode/DerivedData/ModuleCache/GJQSWZVUR8F9/Foundation-PNFYWITLP4HB.pcm": module file not found‘
这个时候执行一下deep clean就可以了,具体的做法是按组合键“Option+Command+Shift+K”. 编译过程中的中间文件都会被删除,然后就可以通过编译了.
When I try to build my app in Xcode, I get this error message:
PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27))
Answer:
This is often a caching problem. Usually it can be resolved by holding down the Option key and choosing Product > Clean
There is a Product > Clean, but it does a less thorough job. Some people can get buy with Product > Clean, for most Product > Clean Build Folder... is sufficient, and others need the manual removal as indicated in
之前有在代码全部正确的情况下,遇到过下面的编译错误:
fatal error: file ‘.....h‘ has been modified since the precompiled header ‘.....‘ was built.
note: please rebuld precompiled header ‘....‘.
解决方法是删除文件夹下/Users/username/Library/Developer/Xcode/DerivedData/ModuleCache下的所有文件,然后重新编译,一般就会好了.
但是偶尔在删除ModuleCache下文件之后,不仅没有解决上面的问题,还会报下面的错误:
fatal error: malformed or corrupted AST file: ‘Unable to load module "/Users/username/Library/Developer/Xcode/DerivedData/ModuleCache/GJQSWZVUR8F9/Foundation-PNFYWITLP4HB.pcm": module file not found‘
这个时候执行一下deep clean就可以了,具体的做法是按组合键“Option+Command+Shift+K”. 编译过程中的中间文件都会被删除,然后就可以通过编译了.
相关文章推荐
- iOS 学习XXMP 即时通讯
- iOS LaunchScreen设置启动图片 启动页停留时间
- iOS 自定义 URL Scheme 完全指南
- iOS 的APNS device token特性
- iOS中navigationController相关
- iOS个推消息推送的使用
- iOS键盘使用
- iOS极光推送的使用说明
- iOS快速回复通知
- 那些需要你知道的iOS开发相关知识(一)
- 怎样使用 iOS 7 的 AVSpeechSynthesizer 制作有声书(1)
- iOS开发必收藏】详解iOS应用程序内使用IAP/StoreKit付费、沙盒(SandBox)测试、创建测试账号流程!【2012-6-25日更新iap恢复详解】
- iOS cell重用机制导致数据重叠显示解决方法
- iOS自动布局第三方库Masonry的使用
- ios 字符串大小写转换代码
- ios 字符串加密到md5
- iOS把字符串汉字转换成UTF-8编码
- ios小知识点积累
- iOS刷新某个cell时候crash
- iOS 访问相机、相册