Xcode 4.6.2 error after upgrade. (error: PCH file built from another branch)

My project works great in previous versions of Xcode. Now I upgraded to Xcode 4.6.2 and I get this error:

A 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 to fix it?

+6
source share
2 answers

Specifically, if you are creating from the command line or you have a build script, clearing the xcode target is not enough. You must delete this folder.

A precompiled header location can be found in

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

Open Terminal , cd folder path and delete the folder with

 #rm -fr SharedPrecompiledHeaders 

enter image description here

+17
source

I have closed xcode project then started again and CMD+SHIFT+K This logic works great for me.

+9
source

Source: https://habr.com/ru/post/943506/


All Articles