Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 4.6.2 issue after update. (error: PCH file built from a different branch ) [duplicate]

Tags:

xcode

xcode4.6

My project works fine in previous versions of Xcode. Now I've updated to Xcode 4.6.2, and I'm getting this error:

PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28))

Is this a bug in Xcode? How do I fix it?

like image 348
Nirav Jain Avatar asked Apr 24 '13 05:04

Nirav Jain


2 Answers

Specially if you build from command line or you have a build script, cleaning xcode target is not enough. You have to delete this folder.

The precompiled header location can be found in the

Target -> build settings => "Build locations" -> Precompiled headers cached path

Open Terminal, cd to the folder path and delete the folder with,

#rm -fr SharedPrecompiledHeaders

enter image description here

like image 63
karim Avatar answered Oct 07 '22 00:10

karim


Done i have closed xcode project then started again and CMD+SHIFT+K. This logic is working fine for me.

like image 37
Nirav Jain Avatar answered Oct 06 '22 23:10

Nirav Jain