编译时错误libxml2.dylib

时间:2014-11-18 11:33:54

标签: ios ios7 xcode5

我在xcode 5中编译项目时发现了以下错误。

enter image description here

1 个答案:

答案 0 :(得分:0)

试试这个

1-In target Build Settings, Linking -> Other Linker Flags, add -lxml2
2-In target Build Settings, Search Paths -> Header Search Paths, add $(SDKROOT)/usr/include/libxml2
3-In target Build Phases, Link Binary With Libraries, add libxml2.dylib