Error: system file has been modified since precompiled header was built

旧城冷巷雨未停 提交于 2020-01-12 12:47:07

问题


I just downloaded the final version of xcode 6 and to compile a project that I was working with the beta, now generates the following error simulator apparently, someone can help me with this.

fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs/iPhoneSimulator8.0.sdk/usr/include/sysexits.h' has been modified since the 
precompiled header '/Users/Lycros/Library/Developer/Xcode/DerivedData/ModuleCache/NZL05J5PKZ6B/
UIKit-301UUGFC4BK8R.pcm' was built

he error occurs when I try to compile on the simulator iphone 5s, 6, 6 plus and both resizables. works in another than iphone 5, 4 etc. . .


回答1:


Quit Xcode and remove everything in the module cache located here:

~/Library/Developer/Xcode/DerivedData/ModuleCache

The cache that was built with a previous version of Xcode is invalid for this version of Xcode and SDK, and that is causing your error.




回答2:


If you change your deployment target to 8.0, you can get it to run on iPhone 6 simulator.

Mine wasn't working either, I updated deployment target to 8.0, cleaned project, ran on simulator and the build worked fine.

Then I downgraded the deployment target to 7.1, picked 5S 7.1 simulator and it also correctly built and ran.



来源:https://stackoverflow.com/questions/25951998/error-system-file-has-been-modified-since-precompiled-header-was-built

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!