我收到了以下错误.
libxml/tree.h没有这样的文件或目录
我已经添加libxml2.dylib到我的项目中,但是我遇到了这种麻烦.请帮我.
我刚刚下载了Xcode 4,我似乎无法运行我的应用程序,因为MGTwitter ...类抱怨LibXML2的非包含错误.我已将其导入frameworks文件夹,并在构建设置的头位中添加了以下内容
$(SDKROOT)/usr/include/libxml2
Run Code Online (Sandbox Code Playgroud)
但我仍然得到65个错误.
任何想法如何解决这一问题?
我得到词法或预处理器问题,即xcode 6.1更新后找不到文件.我已经遵循下面的堆栈溢出解决方案但没有运气.
xcode更新后找不到#import <libxml/tree.h>文件
i found libxml2.2.dylib --> it is created during xcode 5 installation.
libxml2.dylib --> it is created during latest xcode6 update.
Run Code Online (Sandbox Code Playgroud)
使用finder/usr/lib /
I had used libxml2.2.dylib in xcode 5 but now i am getting above error in xcode 6.
Run Code Online (Sandbox Code Playgroud)
另外如何从这个/ usr/lib/location添加libxml2.2.dylib lib,因为在构建阶段我无法导航到/ usr/lib/path.
请帮帮我.提前致谢.