Yatendra
Yatendra

Reputation: 1306

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.

Upvotes: 3

Views: 2315

Answers (2)

Yatendra
Yatendra

Reputation: 1306

To add libxml2.dylib follow these steps

  • Go to general tab and click on + button in Link Frameworks and Libraries
  • Click on Add Other button then
  • press cmd+Shift+G and write below path and add it

/usr/lib/libxml2.dylib

Upvotes: 0

Er. Khatri
Er. Khatri

Reputation: 1414

set your Link Frameworks Automatically to YES in Build Settings, then go to general tab and in click on + button in Link Frameworks and Libraries there search for libxml2.tbd and add

Upvotes: 3

Related Questions