Xcode 4 - clang error

前端 未结 7 909
走了就别回头了
走了就别回头了 2020-12-01 11:29

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.

相关标签:
7条回答
  • 2020-12-01 11:34

    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"

    0 讨论(0)
  • 2020-12-01 11:39

    Apparently, you've set custom compiler flags for the include paths.

    Go to your target's build settings and check this option:

    • Other C flags

    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:

    • Header Search Paths
    • User Header Search Paths

    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...

    0 讨论(0)
  • 2020-12-01 11:39

    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.

    0 讨论(0)
  • 2020-12-01 11:39

    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

    0 讨论(0)
  • 2020-12-01 11:40

    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.

    0 讨论(0)
  • 2020-12-01 11:43

    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

    xcode project general general tab

    0 讨论(0)
提交回复
热议问题