#进口<的libxml / tree.h中>在x code 6.1更新文件未找到 [英] #import <libxml/tree.h> file not found after xcode 6.1 update

查看:194
本文介绍了#进口<的libxml / tree.h中>在x code 6.1更新文件未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到的词汇或preprocessor问题即在x code 6.1更新文件未找到。我按照下面的堆栈溢出的解决方案,但没有运气。

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.

<一个href=\"http://stackoverflow.com/questions/14622684/import-libxml-tree-h-file-not-found-after-x$c$c-update\">#import &LT;的libxml / tree.h中&GT; X code更新后未找到文件

i found libxml2.2.dylib --> it is created during xcode 5 installation.
              libxml2.dylib  --> it is created during latest xcode6 update.

使用取景器/ usr / lib目录/

Using finder /usr/lib/

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

另外如何从这一/ usr / lib目录/位置添加libxml2.2.dylib lib中,因为在构建阶段我不能导航到/ usr / lib目录/路径。

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.

请帮助我。先谢谢了。

推荐答案

在这两个项目搜索路径,以及在目标

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

还设置OTHER_LDFLAGS为-lxml2以避免任何连接问题,事后

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

这篇关于#进口&LT;的libxml / tree.h中&GT;在x code 6.1更新文件未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆