找不到libxml / xmlversion.h文件

时间:2014-07-24 07:24:36

标签: ios objective-c

我正在使用Xcode 5.0.1。 我有" libxml2.dylib"在以下路径下。

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib

此路径在我的项目HEADER SEARCH PATHS中设置。 我在Xcode项目中包含了这个libxml2.dylib库。

当我构建xcode项目时,它会抛出错误

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/libxml2/libxml/tree.h:17:10: 'libxml/xmlversion.h' file not found

我还尝试设置/usr/include/libxml2,但在这种情况下,它显示链接器错误为library not found for -lxml2

这可能是一个重复的问题,但我的问题很奇怪,无论互联网上提到什么解决方案,都没有用。 有人可以建议我解决这个问题吗?

0 个答案:

没有答案
相关问题