我得到词法或预处理器问题,即在xcode 6.1更新后找不到文件。我已经按照下面的堆栈溢出解决方案但没有运气。
#import <libxml/tree.h> file not found after xcode update
i found libxml2.2.dylib --> it is created during xcode 5 installation.
libxml2.dylib --> it is created during latest xcode6 update.
使用finder / usr / lib /
I had used libxml2.2.dylib in xcode 5 but now i am getting above error in xcode 6.
此外如何从/ usr / lib / location添加libxml2.2.dylib lib,因为在构建阶段我无法导航到/ usr / lib / path。
请帮帮我。提前谢谢。
答案 0 :(得分:14)
set HeaderSearchPath and LibrarySearchPaths to /usr/include/libxml2
这件事解决了我的问题,也许它也会帮助你
还将OTHER_LDFLAGS设置为-lxml2以避免之后出现任何链接器问题</ p>