使用GData XML构建iPhone应用程序失败:未定义符号(对于体系结构i386) [英] Building iPhone app with GData XML fails: undefined symbols (for architecture i386)

查看:94
本文介绍了使用GData XML构建iPhone应用程序失败:未定义符号(对于体系结构i386)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将GData XML包含到当前项目中.到目前为止,没有成功,但是由于某种错误超出了我的范围,因此构建失败..

I've tried to include GData XML into my current project. So far without success, however, building fails due to an error of a kind that's out of my scope..:

由于我正在为iPhone(和iPhone Simulator,为了完整起见)而构建,所以我仍然不知道为什么它关心i386.但是再说一次,包含libxml2的整个问题超出了我的舒适范围-我是第一次这样做.

Since I am building for iPhone (and iPhone Simulator, for the sake of completeness), I don't know why it cares about i386 anyway. But then again the whole matter of including libxml2 is a bit beyond my comfort zone - I'm doing this for the first time.

对于设置所有标志和搜索路径,我指的是 本教程 .我无法添加OTHER_CFLAGS标志,因为 LLVM GCC 4.2-Language 中已经存在相同名称的键.因此,我尝试将其设置为 -DDEBUG = 1 ,但这并没有任何改变.

For setting up all the flags and search paths I was referring to Step 4 of this tutorial. I was unable to add the OTHER_CFLAGS flag, since a key of the same name exists in LLVM GCC 4.2 - Language already. So I tried to set it to -DDEBUG=1 there, but that didn't change anything.

那么,如何使事情正常进行?似乎有关GData XML的文档很少-您能推荐比我找到的链接更好地解释事情的任何资源吗?

So, how do I get things to work properly? It seems like documentation on GData XML is sparse - can you recommend any ressource that explains things better than the link I found?

由于koregan在他的评论中对此进行了询问,因此我想补充一点,它不能为iPhone Simulator和实际设备编译.如果为该设备构建该错误,则该错误会稍有不同(没有i386部分):

Since koregan asked this in his comment, I'd like to add that it doesn't compile for iPhone Simulator and the actual device. If building for the device the error is a slightly different one (without the i386 part) however:

推荐答案

Geez!知道了.

在我的应用程序pch文件中导入了GDataXMLNode.h.在此SO答案中找到解决方案.本来可以想到的.你不会吗愚蠢的我.

Did import GDataXMLNode.h in my apps pch file. Found the solution in this SO answer. Could have thought of that. Wouldn't you have? Stupid me.

这篇关于使用GData XML构建iPhone应用程序失败:未定义符号(对于体系结构i386)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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