Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wsdl2objc: 'libxml/tree.h' file not found

After i checked all this instructions (original wsdl2objc documentation), i get this error:

'libxml/tree.h' file not found

I checked several forum entries, because i'm not alone with this problem. Sadly nothing that worked for the others worked for me. I use XCode 4.2.

Please help! Thy

like image 305
NicTesla Avatar asked Apr 29 '12 20:04

NicTesla


2 Answers

This entry libxml/tree.h no such file or directory and the video http://sudzc.com/Tutorial/ObjC.mov helped me.

The solution was that i didn't have to add the libxml2.dylib in the "Linked Framework and Libraries" section, so i just deleted it, because i added it previousely.

Then in the Project -> "Build Settings" Tap i added the value "-lxml2" in the "Other Linker Flags" entry and in the "Header Search Paths" i added the value "/usr/include/libxml2".

Thats it.

like image 87
NicTesla Avatar answered Nov 12 '22 02:11

NicTesla


For me it worked after I had added not "/usr/include/libxml2", but "${SDKROOT}/usr/include/libxml2" in Header Search Paths. Also I added "-lxml2" in "Other Linker Flags".

I had no need to set up Project's settings, just Target's. XCode 6.1

like image 33
HoRn Avatar answered Nov 12 '22 02:11

HoRn