我刚刚安装了 Xcode 版本 4.3.1,但收到此错误:
libxml / tree.h file not found
我还安装了 Xcode 4.2,并且在同一项目中我遇到了相同的错误。
我已使用 /usr/include/libxml2
配置了 header 搜索路径
我也尝试了 $(SDKROOT)/usr/include/libxml2
但没有成功。
我还将其他链接器标志与lxml2
最佳答案
在 header 搜索路径中包含以下内容,您应该不会受到 Apple 对其 Xcode 更新所做的任何奇怪的影响:
$(SDKROOT)/usr/include/libxml2
关于iphone - 为什么我会收到此 "libxml/tree.h file not found"错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9666804/