It keeps saying:
fatal error: file '/Applications/Xcode5-DP5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/objc/NSObject.h'
has been modified since the precompiled header
'/Users/jackiexu/Library/Developer/Xcode/DerivedData/ModuleCache/2MWVPCGUMQ29P/ObjectiveC.pcm' was built
note: after modifying system headers, please delete the module cache at '/Users/jackiexu/Library/Developer/Xcode/DerivedData/ModuleCache/2MWVPCGUMQ29P'
1 error generated.
I must have deleted the derived data at least five times by now, and I'm getting nowhere. Any ideas?
Delete the folder, clean the app, restart Xcode if necessary.
Run this script to delete all relevant files in
/Library/Developer/Xcode/DerivedData
and/var/folders
:This happen when compiling, when running the app or neither?
Have you tried this:
Build Settings - Build Locations - Precompiled Header Cache Path -- there's a folder... delete it.
Open a terminal and type in : rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache/*
Clean your project and build again. Worked for me.
I used Shift + CMD + K to try and clean the project, but it did not disappear.
All I had to do was go and check the names of
<yourProjectName>-info.plist
and<yourProjectName>-Prefix.pch.
Then Shift + CMD + K worked.
In my case the problem was Clang exiting with code 1.
Please follow below steps to get rid from your problem.
"Library/Developer/Xcode/DerivedData/ModuleCache/"
Delete all Folders inside ModuleCache Folder.
Make a clean build, quit Xcode and run it again
sure ,it will work fine.
Good Luck !!!