GData for iPhone 发布配置问题
我正在尝试 Dan Bourque 的“iphone-gcal”项目,该项目似乎非常出色介绍如何使用 Google 数据 API 的 Objective-C 客户端库,一切都运行得非常好...直到我尝试让它在发布模式下工作,当我收到大量错误时,例如 -
Undefined Symbols for建筑学i386:
“_xmlFreeNode”,引用自:
-GDataXMLNode.o 中的[GDataXMLNode dealloc]
-GDataXMLNode.o 中的[GDataXMLElement removeChild:]
-GDataXMLNode.o 中的[GDataXMLElement addChild:]
+[GDataXMLNode elementWithName:stringValue:] 在 GDataXMLNode.o
“_xmlStrdup”,引用自:
GDataXMLNode.o 中的_StringCacheKeyRetainCallBack
+[GDataXMLElement fixQualifiedNamesForNode:graftingToTreeNode:] 在 GDataXMLNode.o
-GDataXMLNode.o 中的[GDataXMLDocument setCharacterEncoding:]
-GDataXMLNode.o 中的[GDataXMLDocument setVersion:]
-[GDataXMLNode setStringValue:] 在 GDataXMLNode.o
我尝试将 /usr/include/libxml2 放入标头搜索路径(版本)中,然后在构建阶段的“链接二进制文件与库”部分链接到它(这至少允许它编译 - 然后它在启动时挂起,说“等待进程'GTUG Demo'启动”),以及这些的混合,但没有乐趣。
我一直在搜寻文档和内容所以,等等,但我所做的一切都无法让它发挥作用。我意识到我可能做了一些愚蠢的事情,但我为此掉了太多头发!任何帮助将不胜感激!
I'm experimenting with Dan Bourque's "iphone-gcal" project, which seems an excellent intro to how to use the objective-c client library for the Google Data APIs, and everything's working really well... until I try to get it to work in release mode, when I get a load of errors such as -
Undefined symbols for architecture i386:
"_xmlFreeNode", referenced from:
-[GDataXMLNode dealloc] in GDataXMLNode.o
-[GDataXMLElement removeChild:] in GDataXMLNode.o
-[GDataXMLElement addChild:] in GDataXMLNode.o
+[GDataXMLNode elementWithName:stringValue:] in GDataXMLNode.o
"_xmlStrdup", referenced from:
_StringCacheKeyRetainCallBack in GDataXMLNode.o
+[GDataXMLElement fixQualifiedNamesForNode:graftingToTreeNode:] in GDataXMLNode.o
-[GDataXMLDocument setCharacterEncoding:] in GDataXMLNode.o
-[GDataXMLDocument setVersion:] in GDataXMLNode.o
-[GDataXMLNode setStringValue:] in GDataXMLNode.o
I've tried putting /usr/include/libxml2 in the header search path (release), then linking to it in the "Link binaries with libraries" section of Build Phases (which allows it to compile at least - it then hangs on launch, saying "Waiting for process 'GTUG Demo' to launch"), and a mixture of these, but no joy.
I've been scouring the docs & SO, etc, but nothing I do gets it to work. I realise I'm probably doing something stupid, but I'm losing too much hair over this! Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
libxml2 必须使用标志 -lxml2 链接到发布目标,如
中所述http://code.google.com/p/gdata-objectivec-client/wiki/BuildingTheLibrary
libxml2 must be linked in to the release target with the flag -lxml2 as described at
http://code.google.com/p/gdata-objectivec-client/wiki/BuildingTheLibrary