[英]<libxml2/tree.h> not found in my Xcode project
Hi in my Xcode project I included libxml2.dylib
framework. 嗨,在我的Xcode项目中,我包括了
libxml2.dylib
框架。 I am still getting a error: 我仍然遇到错误:
libxml2/tree.h not found.
找不到libxml2 / tree.h。
How to resolve this issue? 如何解决这个问题?
I didn't give any search header paths. 我没有给出任何搜索头路径。 I am using
Xcode 4.2
我正在使用
Xcode 4.2
In my own projects that use libxml2, I modified the Header Search paths to explicitly tell the compiler where to find the header files: 在我自己的使用libxml2的项目中,我修改了Header Search路径,以明确告诉编译器在哪里可以找到头文件:
As you can tell from the " $(SDKROOT)
" bit, it's actually built into the SDK that gets installed with Xcode. 正如您可以从“
$(SDKROOT)
”位中$(SDKROOT)
,它实际上内置于随Xcode安装的SDK中。
change the Header Search Paths to this: 将标题搜索路径更改为此:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/libxml2
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/libxml2
you are welcome :) 别客气 :)
Read this documents.........i think this url is helpful for you.... 阅读此文档.....我认为该网址对您有所帮助。
see this topic in this url Setting up your project file
在此url中查看此主题
Setting up your project file
if you did not know header search path in Xcode , then follow step 如果您不知道Xcode中的标题搜索路径,请按照以下步骤操作
go to target->click on BUild Setting-> search heder in search bar -> then you see search Path -> and check header search path
you go in Build Phase "Link with binary Libarys" and add libxml2 frame work 您进入构建阶段“与二进制库链接”并添加libxml2框架
You follow all step after use step then click all tab (not combined tab)
I have similar issue and fix issue by following steps as per this article : 按照本文的步骤,我遇到了类似的问题并解决了问题:
http://www.optimusmobility.com/2013/06/11/how-to-resolve-libxmltree-h-file-not-found-error/ http://www.optimusmobility.com/2013/06/11/how-to-resolve-libxmltree-h-file-not-found-error/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.