LibXML2.dylib with Xcode6

寵の児 提交于 2019-12-24 11:37:40

问题


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.



来源:https://stackoverflow.com/questions/28448539/libxml2-dylib-with-xcode6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!