Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MGTwitter: libxml/xmlreader.h file not found in XCode 4.5

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

like image 459
PK86 Avatar asked Nov 27 '22 22:11

PK86


1 Answers

I solved this by adding

/usr/include/libxml2

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

like image 109
Mike Keskinov Avatar answered Dec 04 '22 06:12

Mike Keskinov