Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone: Building error precompiling app_prefix.pch

Tags:

iphone

build

I dont know what happened to Xcode. I was debugging my app when after a while of writing some code I tried to compile and an error message appeared:

Building error precompiling app_prefix.pch arm-apple-darwin9-gcc-4.2.1: te: no such file or directory

I had never this error before, and I am not sure how to solve it.

like image 827
Carlos Vargas Avatar asked Mar 18 '10 21:03

Carlos Vargas


2 Answers

Did you move your [Project Name]_prefix.pch file ? If you moved it to say, a subdirectory of the project's parent, you need to open up the target Build settings for each of your targets by double clicking on them, do a search for "pch" in the build settings, and update the path to the .pch file.

For example, if you moved your .pch file to a subdirectory "Core" which is in the project parent, then you'd change "[Project Name]_prefix.pch" in the build settings to "Core/[Project Name]_prefix.pch".

like image 147
Paul Shapiro Avatar answered Nov 15 '22 16:11

Paul Shapiro


Try to change the buid setting of the target in project propertys:

Change the option Precompile prefix header to "NO"

like image 24
Guilherme Muniz Avatar answered Nov 15 '22 16:11

Guilherme Muniz