xcode更新后找不到#import <libxml / tree.h>文件
晚上我更新了我的iPhone到iOS 6.1,我的当前版本的Xcode不会build立到手机,因为我需要最新的版本。
我从xcode 4.5.2到xcode 4.6,我在我的项目文件中做了0个更改。
什么用于编译完全罚款,现在给我一个文件没有find错误
#import <libxml/tree.h> 'libxml/tree.h' file not found
我有我的searchpath正确链接
$(SDKROOT)/usr/include/libxml2
libxml2在构build阶段被链接和需要。
编辑:
奇怪我改变了我的searchpath,以下瞧。
/usr/include/libxml2
不知道为什么这个问题解决了这个问题,有谁能够告诉我在xcode中有什么改变?
在您的构build设置中,将以下内容添加到页眉searchpath中:
$SDKROOT/usr/include/libxml2
对我来说,有什么工作是添加到标题searchpath:
$(SDKROOT)/usr/include/libxml2
与其他答案略有不同,可能与更新版本的Xcode有关。
在Xcode6和最新版本中添加到您的标题searchpath:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libxml2
并记住将searchpath也添加到testing目标。
添加:$ SDKROOT / usr / include / libxml2