简体   繁体   中英

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM