I'm trying to integrate libxml2.dylib in my IOS project,I have linked this library in Link binary with libraries in Build phases for target,its working fine when I run it on simulator,but throws linker command failed with exit code 1 (use -v to see invocation) library not found for -lxml2 error when trying to run it in device,I have also added -lxml2 in Other Linker flags in Build settings,still couldn't get it done.I'm a beginner,any advice on this is highly appreciated.I'm using Xcode 6.1 and IOS SDK 8.1.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This is what worked for me:
Just put /usr/include/libxml2 in your Header Search Paths on the Target.
I'm using XCode 6.1.1 and Yosemite.
Best regards.