iosxmlxmpplibxml2xmppframework

How to add libxml2.dylib in xcode 7


I am trying to add xmpp framework in my ios app.After adding it's showing

libxml/tree.h file not found

after some googling I found that need to add libxml2.dylib in Build Phases -> Link Binary With Libraries.But I am not finding this file. but i found .tbd file.I try to add .tbd file and set Header search path as $(SDKROOT)/usr/include/libxml2 but it still showing same error.

I know that same question asked many times but I am not solving this issue. Please help.


Solution

  • To add libxml2.dylib follow these steps

    /usr/lib/libxml2.dylib