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. :)

Filed Under: Programming

Tags:

RSSComments (6)

Leave a Reply | Trackback URL

  1. @jaucey says:

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

  2. Brett says:

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

  3. Arvi says:

    Much appreciated…saved me from a lot of anguish!

  4. Zhe Zhu says:

    Really helpful!!

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

  5. Mel_M says:

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

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.