Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve the apple LLVM 5.0 error in xcode 5?

I was running my application without any problems on both the simulator and device. All of a sudden i get this error:

fatal error: file  '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h' has been modified since the precompiled header '/Users/rashidasgari/Library/Developer/Xcode/DerivedData/ModuleCache/SWBH8ZAWBXAH/UIKit.pcm' was built
note: after modifying system headers, please delete the module cache at '/Users/rashidasgari/Library/Developer/Xcode/DerivedData/ModuleCache/SWBH8ZAWBXAH'

I tried any solution i could find and still no luck. Note that i tried running the application on another MacBook and everything works fine without any errors.

like image 381
Rashid Avatar asked Nov 28 '22 11:11

Rashid


1 Answers

Cleaning the project is the first port of call (menu under Product).

If that doesn't help, delete the derived data. That can be done via the Locations section of the preferences or by navigating to the directory in Finder and deleting it (there is a little -> button in preferences to get there, or use Go To Folder... option in the Finder.

like image 157
Wain Avatar answered Dec 09 '22 09:12

Wain