1
votes

I am making a chat app with xmpp framework.

I have setup XMPPFramework in my project by referring this link:-

http://code.tutsplus.com/tutorials/building-a-jabber-client-for-ios-interface-setup--mobile-7188

When i build IPA i getting error like : library is not found for -lxml2. i also try to change User Search path and Header path but still it generate same error.

Can anyone suggest me solution for this. thanx in adv.

3

3 Answers

0
votes

Are you sure you have added libxml2 (.dylib or .tbd) to your "Link Binary with Libraries" section? Isn't it colored red?

i also try to change User Search path and Header path

Change to what? For me, libxml2.dylib is present in a standard location: /usr/lib => no need to change anything. Do you have it there, too?

0
votes

You have two option to solve this problem :

You can add the flag -lxml2 to your OTHER_LDFLAGS in your TARGET BUILD SETTINGS, and add in your HEADER_SEARCH_PATHS : $(SDKROOT)/usr/include/libxml2

Or you can use a wrapper around the XMPPFramework, witch will handle all the compile problems for you.

You can check it out here.

0
votes
  1. Add Security.frameWork in Linked Frameworks and libraries
  2. Add in User Header Search Paths : $(SDKROOT)/usr/include/libxml2 make it recursive
  3. Add in Header Search Paths : $(SDKROOT)/usr/include/libxml2 make it non-recursive
  4. search "Other Linker Flags" and the add: -lxml2.
  5. Now clean project and build for IPA Screen shot