Fixing file 'project.pch' has been modified since the precompiled header was built error in Xcode Fixing file 'project.pch' has been modified since the precompiled header was built error in Xcode xcode xcode

Fixing file 'project.pch' has been modified since the precompiled header was built error in Xcode


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)


  1. Close your project or workspace.
  2. In Finder: ⇧shift+⌘cmd+G
  3. Paste: ~/Library/Developer/Xcode/DerivedData/
  4. Delete the ModuleCache folder and empty trash.
  5. Open up your project.
  6. Clean: ⇧shift+⌘cmd+K
  7. 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.