Fixing file 'project.pch' has been modified since the precompiled header was built error in Xcode
I was recently working on my application messing around in the info.plist section, and since that my application will not run on my test device:
file 'project.pch' has been modified since the precompiled header was built
Something to note is that the app runs fine in the simulator.
Edit: Now I am getting this error instead of the other one:
No such file or directory (/Users/Me/Library/Developer/Xcode/DerivedData/MyProject-abcdefghijklmnopqrstuvwxyz/Build/Products/Debug-iphoneos/MyApp./MyApp)
How to regenerate the info.plist file?
You could try a deep clean (not the same as Product > Clean) - Option+Command+Shift+K
Note: this means the clean the build folder (by pressing Option + Product -> clean folder)
- Close your project or workspace.
- In Finder: ⇧shift+⌘cmd+G
- Paste:
~/Library/Developer/Xcode/DerivedData/
- Delete the
ModuleCache
folder and empty trash. - Open up your project.
- Clean: ⇧shift+⌘cmd+K
- Build: ⌘cmd+B
In my case the error message had a small hint:
note: after modifying system headers, please delete the module cache at '~/Library/Developer/Xcode/DerivedData/ModuleCache/5CYAJ91AZCB7'
I tried and it worked.