【问题标题】:symbol(s) not found for architecture i386?找不到架构 i386 的符号?
【发布时间】:2012-12-29 22:47:10
【问题描述】:

我正在尝试实现具有多个标记的地图。但是我被这个错误所困扰。

架构 i386 的未定义符号:

  "_xmlFreeDoc", referenced from:

      +[MTDXMLElement nodesForXPathQuery:onXML:namespacePrefix:namespaceURI:] in MTDirectionsKit(MTDXMLElement.o)

  "_xmlReadMemory", referenced from:

      +[MTDXMLElement nodesForXPathQuery:onXML:namespacePrefix:namespaceURI:] in MTDirectionsKit(MTDXMLElement.o)
  "_xmlXPathEvalExpression", referenced from:

      +[MTDXMLElement mtd_nodesForXPathQuery:namespacePrefix:namespaceURI:libXMLDoc:] in MTDirectionsKit(MTDXMLElement.o)

  "_xmlXPathFreeContext", referenced from:

      +[MTDXMLElement mtd_nodesForXPathQuery:namespacePrefix:namespaceURI:libXMLDoc:] in MTDirectionsKit(MTDXMLElement.o)
  "_xmlXPathFreeObject", referenced from:

      +[MTDXMLElement mtd_nodesForXPathQuery:namespacePrefix:namespaceURI:libXMLDoc:] in MTDirectionsKit(MTDXMLElement.o)
  "_xmlXPathNewContext", referenced from:

      +[MTDXMLElement mtd_nodesForXPathQuery:namespacePrefix:namespaceURI:libXMLDoc:] in MTDirectionsKit(MTDXMLElement.o)
  "_xmlXPathRegisterNs", referenced from:

      +[MTDXMLElement mtd_nodesForXPathQuery:namespacePrefix:namespaceURI:libXMLDoc:] in MTDirectionsKit(MTDXMLElement.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有人可以通过“未找到架构 i386 的符号”来解释我的意思。

【问题讨论】:

    标签: xcode xcode4


    【解决方案1】:

    您的库 MTDirectionsKit 不支持模拟器。根据您获得库的位置,您必须将其重新构建为通用库,或者包含(并正确配置您的构建设置)模拟器(调试模拟器)的静态库。

    Xcode 4 停止构建静态通用库。因此,根据开发人员的不同,它们不是作为一个构建,而是 4 个独立的库。您可以将它们捆绑到 1 中,但您需要添加构建脚本来处理它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-07
      • 1970-01-01
      • 2011-12-13
      • 1970-01-01
      相关资源
      最近更新 更多