MGTwitter: libxml / xmlreader.h not found in Xcode 4.5

I just downloaded Xcode 4.5 and I can not start my application because the MGTwitter classes ... complain about the LibXML2 enable error. I imported it into the frameworks folder and I put the following in the header bit in the build settings

$ (SDKROOT) / USR / include / libxml2

#include <libxml/xmlreader.h> file not found 

My application compiles without problems using Xcode 4.3, but when I try to compile using 4.5, I get this error

I also tried: $ (SDK_DIR) / USR / include / libxml2

Is this just a mistake or am I missing something obvious?

thanks

+4
source share
3 answers

I solved this by adding

 /usr/include/libxml2 

in the header search path. Only this, without $(SDKROOT) or $(SDK_DIR) .

+28
source

I managed to solve the problem in one of my projects by adding double quotes around the path. Since I put Xcode 4.5 on a path with a space in it, everything broke. So I changed $ (SDK_DIR) / USR / to include / libxml2 to "$ (SDK_DIR) / USR / to include / libxml2"

+11
source

I encountered the same problem a few days ago and I am following these steps:

  • You just need to add the libxml2.dylib framework.
  • and add / usr / include / libxml2 to the header search path.

It worked for me.

+3
source

Source: https://habr.com/ru/post/1437161/


All Articles