Xcode 4 - clang error

空扰寡人 提交于 2019-11-27 08:05:27

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

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

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"

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.

Hi guys we did something that worked... We had the same problem and it was quite easy to solve... First you go to terminal type cd cd (drag the whole folder where your file is in) and press return

after you are inside the folder you have to write:

pod instal and type return

something like that....

Last login: Wed Aug 21 09:19:29 on console

WozMac1:~ KrisBasque$ WozMac1:~ KrisBasque$ WozMac1:~ KrisBasque$ WozMac1:~ KrisBasque$ cd WozMac1:~ KrisBasque$ cd /Users/KrisBasque/Documents/QUADDRO/medapp WozMac1:medapp KrisBasque$ pod install Analyzing dependencies

CocoaPods 0.23.0 is available.

Downloading dependencies Using AFNetworking (1.3.1) Installing FMDB (2.1) Using MBProgressHUD (0.7) Using PSStackedView (1.0) Using Reachability (3.1.1) Installing SDWebImage (3.3) Using TapkuLibrary (0.2.4) Installing libwebp (0.3.0-rc7) Generating Pods project Integrating client project WozMac1:medapp KrisBasque$

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!