Can't get rid of Apple LLVM 5.0 Error

17,641

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.

  1. click on Xcode preferences
  2. Goto locations tab
  3. click on the derived data path which navigates to the folder called DerivedData
  4. 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 ?

Share:
17,641
Aeveus
Author by

Aeveus

I solve problems.

Updated on June 06, 2022

Comments

  • Aeveus
    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
    Aeveus almost 11 years
    I did that, but with no result.
  • Albert Renshaw
    Albert Renshaw over 10 years
    This worked for me! Don't forget to substitute "yourusername" with your actual computer's login username in the address he posted!
  • Harlan Haskins
    Harlan Haskins over 10 years
    It'd probably be better to just use ~/Library/Developer/Xcode/DerivedData/ModuleCache/* instead of substituting for yourusername
  • Joshua Gross
    Joshua Gross over 10 years
    I 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
    Bill about 10 years
    This doesn't work unless you delete ModuleCache. See the answers below.
  • Neva
    Neva about 10 years
    Hey Jackie Xu, can you accept this as an answer? It seems to be working for most people.
  • gsach
    gsach almost 10 years
    Just cleaning the project was enough for me
  • Hernan Arber
    Hernan Arber almost 10 years
    OH! Finally... Thanks Bro!
  • csotiriou
    csotiriou over 9 years
    Deleting ALL DerivedData (the entire folder) seemed to do the trick for me.
  • Dan Jackson
    Dan Jackson over 9 years
    Thanks 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.