Can't get rid of Apple LLVM 5.0 Error
Solution 1
Open a terminal and type in : rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache/*
Clean your project and build again. Worked for me.
Solution 2
Delete the folder, clean the app, restart Xcode if necessary.
Solution 3
as per xcode 5.
- click on Xcode preferences
- Goto locations tab
- click on the derived data path which navigates to the folder called
DerivedData
- Delete the whole folder and restart xcode.
This works fine for me.
Happy coding :)
Solution 4
The same thing was occuring to me. The warning was telling me:
After modifying system headers, please delete the module cache at '/Users/yunus.mehel/Library/Developer/Xcode/DerivedData/ModuleCache/13XL2DHZVON89'
So, I have restarted xcode, deleted derived data from Organizer, deleted derived data from the derivedData folder; none of them worked. Then I have realized, the solution was already there; go to:
"DerivedData/ModuleCache/13XL6DH2BON89"
and delete that folder, not the "DerivedData/<your_project>". Make a clean build, it will work again.
Solution 5
Have you tried reinstalling xcode? And have you cleaned using cmd+shift+k ?
Comments
-
Aeveus about 2 years
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?
-
Aeveus almost 11 yearsI did that, but with no result.
-
Albert Renshaw over 10 yearsThis worked for me! Don't forget to substitute "yourusername" with your actual computer's login username in the address he posted!
-
Harlan Haskins over 10 yearsIt'd probably be better to just use
~/Library/Developer/Xcode/DerivedData/ModuleCache/*
instead of substituting foryourusername
-
Joshua Gross over 10 yearsI had to do it in exactly this order: Clean the app, close Xcode, remove everything in ModuleCache (one level up from the directory Xcode tells you to remove), start Xcode again.
-
Bill about 10 yearsThis doesn't work unless you delete ModuleCache. See the answers below.
-
Neva about 10 yearsHey Jackie Xu, can you accept this as an answer? It seems to be working for most people.
-
gsach almost 10 yearsJust cleaning the project was enough for me
-
Hernan Arber almost 10 yearsOH! Finally... Thanks Bro!
-
csotiriou over 9 yearsDeleting ALL DerivedData (the entire folder) seemed to do the trick for me.
-
Dan Jackson over 9 yearsThanks for the pointer to /var/folders. I was running into this with one of our frameworks, and cleaning out ...DeveloperTools/6.2/Xcode/... was what fixed it.