0

I have use the WSDL2ObjC framework for WSDL Service but it will give me error in WSDL2ObjC Class:

libxml/tree.h file not found.

I Tried:

  • Add the framework libxml2.dylib.
  • Header Search Paths $SDKROOT/usr/include/libxml2 or /usr/include/libxml2 use both one by one
  • Add "-lxml2" to the Other Linker Flags property
  • Add "-I/usr/include/libxml2" to the Other C Flags property
  • Add the CFNetwork.framework

Set all these Settings, but it did not worked.

Please help me.

Thanks in advance.

Bista
  • 7,869
  • 3
  • 27
  • 55
sohil
  • 818
  • 2
  • 15
  • 38
  • Possible duplicate of [Why am I getting this "libxml/tree.h file not found" error?](http://stackoverflow.com/questions/9666804/why-am-i-getting-this-libxml-tree-h-file-not-found-error) – nwellnhof Aug 24 '16 at 10:10

1 Answers1

0

Go to Project Editor : Build Settings : Search Paths : Header Search Paths

Add this to header search path:

$(SDKROOT)/usr/include/libxml2

I think it was the lack of the parentheses around SDKROOT.

blalond
  • 875
  • 10
  • 17