15

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. . .

lycros
  • 193
  • 2
  • 12

2 Answers2

76

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.

quellish
  • 21,123
  • 4
  • 76
  • 83
0

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.

  • Running it on 8.0 actually worked for me when all the other methods I found (deep cleaning, clearing module cache, touching pch files, etc) didn't work. Changing it back to 7.1 didn't though, but who cares, I've got a build to hand over to Facebook. In Xcode itself, surprisingly changing a device (like 5 to 5S) actually worked for me (with the same deployment target). Not sure why, that of course did not solve the problem. – El Jae Nov 08 '14 at 14:16