11

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

NicTesla
  • 1,626
  • 5
  • 21
  • 35

2 Answers2

26

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.

Community
  • 1
  • 1
NicTesla
  • 1,626
  • 5
  • 21
  • 35
1

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

HoRn
  • 1,458
  • 5
  • 20
  • 25