#import< libxml/tree.h> Xcode更新后找不到文件 [英] #import <libxml/tree.h> file not found after xcode update
问题描述
昨晚我将iPhone更新为iOS 6.1,由于需要最新版本,因此我无法将当前版本的xcode构建到手机中.
Lastnight I updated my iPhone to iOS 6.1, my current version of xcode wouldn't build to the phone as I needed the newest version.
我从xcode 4.5.2转到xcode 4.6,在我的项目文件中进行了0次更改.
I went from xcode 4.5.2 to xcode 4.6, I made 0 changes in my project file.
曾经用来完全编译的东西,现在给了我一个文件未找到错误
What used to compile completely fine, now gives me a file not found error
#import <libxml/tree.h> 'libxml/tree.h' file not found
我的搜索路径已正确链接
I have my search paths correctly linked up with
$(SDKROOT)/usr/include/libxml2
和libxml2在构建阶段是链接和必需的.
and libxml2 is linked and required in build phases.
我特地将搜索路径更改为以下内容.
Peculiar I changed my search paths to the following and voila..
/usr/include/libxml2
不确定为什么可以解决此问题,有人可以启发我了解xcode中发生的变化吗?
Not sure why this has fixed this issue, could anyone enlighten me as to what's changed in xcode?
推荐答案
在构建设置中,将以下内容添加到标题搜索路径中:
In your build settings, add the following to your Header Search Paths:
$SDKROOT/usr/include/libxml2
这篇关于#import< libxml/tree.h> Xcode更新后找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!