Question

I just downloaded Xcode 4.5 and I cant seem to run my application as the MGTwitter... classes are complaining of a non inclusion error of LibXML2. I have imported it into the frameworks folder, and I have put the following in the header bit in the build settings

$(SDKROOT)/usr/include/libxml2

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

My app compiles with no issues using Xcode 4.3, but when I try to compile using 4.5 I get this error

I tried this also: $(SDK_DIR)/usr/include/libxml2

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

Thanks

Was it helpful?

Solution

I solved this by adding

/usr/include/libxml2

in header search paths. Just it, without $(SDKROOT) or $(SDK_DIR).

OTHER TIPS

I was able to fix the problem in one of my projects by adding double quotes around the path. Because I put Xcode 4.5 in a path with a space in it things broke. So I changed $(SDK_DIR)/usr/include/libxml2 to "$(SDK_DIR)/usr/include/libxml2"

I faced same issue some days ago, and i follow below steps:

  • You just need to add libxml2.dylib framework.
  • and add /usr/include/libxml2 in Header Search path.

It worked for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top