This is the error I get:
fatal error: file '/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h' has been modified since the precompiled header '/Users/user/Library/Developer/Xcode/DerivedData/ModuleCache/16ZE17LEJCX4P/AssetsLibrary.pcm' was built
note: after modifying system headers, please delete the module cache at '/Users/user/Library/Developer/Xcode/DerivedData/ModuleCache/16ZE17LEJCX4P'
1 error generated.
So the problem is that these system .h files(ALAssetRepresentation.h in this error) get modified(not by me, at least not knowingly), I see in the finder that their modified date has been changed, and the only way to solve it is to copy them from another my old xcode directory(xcode4), as it still preserves the old modified date.
Does anyone have a hint on why these files get modified and how to prevent it? I can change them to read only but I fear that this change might just screw things even more(having a write permissions seems to the default, I've checked with other people's installations).
Thanks
I had this problem once. Got to your derived data folder and remove everything in it. and dont worry, the system can recreate everything in this folder
Remove the pcm file
rm "/Users/user/Library/Developer/Xcode/DerivedData/ModuleCache/16ZE17LEJCX4P/AssetsLibrary.pcm"
then
Clean Project( Cmd+Shift+K)
Problem solved
If you look at the Error closely, it comes with the warning, as mentioned in question as well:
After changing system header you should remove moduler cache, which resides path (in my case)
/Users/developer/Library/Developer/Xcode/DerivedData/ModuleCache/2IPA3N5W2OEZW
What I did, (I went to extreme)
option + command + shift + k
Now i was good to go. Code exicuted properly and result produced.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With