How to Fix: Error:PCH file built from a different branch than the compiler after updating Xcode

After I updated my Xcode today, I got the following error

Error:PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27))

I know right away it has to do with the New Xcode version and Old Xcode version thing. Why? Just because some programmers won’t stop working till the last minute! LOL, if it worked flawlessly before the update. Nothing else really can explain it.

Solution:

OK, here is the solution.

fix_xcode_pch_file_error

  1. On your Xcode menu, choose “Product
  2. Hold “Option” key, and choose “Clean Build Folder
  3. Continue working. :)

arduino-compare-back

6 Comments

  1. Thanks! I just updated and ran into this. Such as easy solution.

  2. Upgraded Xcode today (Mar 16, 2013) and ran into the same problem. Your suggested fixed it. Thanks.

  3. Much appreciated…saved me from a lot of anguish!

  4. Zhe Zhu Reply to Zhe

    Really helpful!!

    I got this problem and became so nervous. With your solution my new xcode works well again!

  5. Went from “WTF?” to the fix in just a few minutes. May your days be many!

Leave a Reply