Search code examples
objective-cioswsdl2objc

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


Solution

  • 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.