Download

How to fix the "Error: PCH file built from a different branch than the compiler" ?

I’m facing an error when I try to package my project on macOS which has a plugin with thirdparty library (default ExampleLibrary template):



UATHelper: Packaging (Mac): error: PCH file built from a different branch ((clang-1100.0.33.16)) than the compiler ((clang-1100.0.33.17))


I tried cleaning and rebuilding projects in Xcode to no avail. How this error can be fixed?

Go to your project’s folder, find all precompiled headers (extension .gch) and delete them. In terminal:



pchs=`find . -name "*.gch"`
for f in $pchs; do rm $f; done;