Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

file has been modified since the precompiled header was built

So I accidentally modified a header (CBCentralManager.h) and caused the above error to show when I build. I searched stack overflow for the solution, and found this. Even after deleting the derived data, I still get the same error. I've also tried to delete the ModuleCache/FUW5IOHP9BIS folder with no success.

Here is the specific error I'm seeing:

file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h' has been modified since the precompiled header '/var/folders/pj/hslm53_51xxd_npfqym5r6z00000gn/C/com.apple.DeveloperTools/5.0-5A1412/Xcode/5.0-5A1412/Xcode/ModuleCache/FUW5IOHP9BIS/CoreBluetooth.pcm was built

Any help is greatly appreciated.

like image 457
Mark Avatar asked Oct 15 '13 21:10

Mark


1 Answers

I faced this issue on OS10.10 with Xcode 6. I resolved issue by removing .pcm files.

To delete press 'shift+command+g' & delete all .pcm files or goto the folder ~/Library/Developer/Xcode/DerivedData/ModuleCache/ & delete all .pcm files.

Perform deep clean by pressing 'shift+alt+command+k.

Hope it will work for you.

like image 159
Gagan_iOS Avatar answered Sep 29 '22 18:09

Gagan_iOS