#import <libxml/tree.h> file not found after xcode 6.1 update

断了今生、忘了曾经 提交于 2019-12-19 10:12:20

问题


I am getting lexical or preprocessor issue i.e file not found after xcode 6.1 update. i have followed below stack overflow solution but no luck.

#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.

Using finder /usr/lib/

I had used libxml2.2.dylib in xcode 5 but now i am getting above error in xcode 6. 

Also how to add libxml2.2.dylib lib from this /usr/lib/ location because in build Phase i can not navigate to /usr/lib/ path.

Please help me out. thanks in advance.


回答1:


in SearchPaths in both Project as well as in target

set HeaderSearchPath and LibrarySearchPaths to /usr/include/libxml2

this thing solve my issue may it will also help you

also set OTHER_LDFLAGS to -lxml2 to avoid any linker issues afterwards



来源:https://stackoverflow.com/questions/26857531/import-libxml-tree-h-file-not-found-after-xcode-6-1-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!