I\'m migrating from Xcode 3.5 to Xcode 4 and
while I\'m trying to Archiving my app for AdHoc distribution.
I received this error
Precompile MyApp_Prefix.
You can solve this problem by selecting General tab of AppNameTests and select your app from the drop down list and enable "Allow testing Host Applications APIs"
Apparently, you've set custom compiler flags for the include paths.
Go to your target's build settings and check this option:
If you have something in it, you may replace it by the -iquote
version.
Otherwise, still in the build settings, check the value of the following options:
Try to manipulate these values, if applicable.
Otherwise, you may also continue to use GCC as a fronted, instead of Clang.
You can do this by setting the Compiler for C/C++/Objective-C build setting to LLVM GCC instead of Apple LLVM compiler.
EDIT
Based on your edit, I can see you are using the Three20 library.
Depending on how you include that stuff, you may want to put these search paths to the User Header Search Paths, instead of Header search paths (if you include them with ""
instead of <>
).
Try to do this for Three20, but leave libxml here...
I just had this problem with an instagram lib, my mistake was that i was importing the files to a target and compiled the other target. It gave me some headaches.
The way I solved this was my making sure no other implementation files we're linked to your file. Linking interface files is fine though
This error also caused by wrong header import.
For example your class is "yourclass.h", but in wrong way if you import "yourclass.m" it is cause this error.
I tried these solutions. But i couldn't or not working for me.
I solved this problem with this way:
I deleted MuseumTests in targets
When you clicked your project in general tab on left there is targets