【问题标题】:Symbol(s) not found for architecture ARM64 clang--error: linker command failed with exit code 1 (use -v to see invocation)Symbol(s) not found for architecture ARM64 clang--error: linker command failed with exit code 1 (use -v to see invocation)
【发布时间】:2019-07-20 07:02:21
【问题描述】:

我在尝试构建时收到此错误。我已经更新了我的 pod,但没有解决。

   "Undefined symbols for architecture arm64:
  "_xmlXPathFreeObject", referenced from:
      lxml::xpath::object::object(_xmlXPathObject*) in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlReadMemory", referenced from:
      lxml::xml::xml(void const*, unsigned long, char const*, char const*, int) in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "___xmlLastError", referenced from:
      lxml::xml::xml(void const*, unsigned long, char const*, char const*, int) in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlXPathCastToBoolean", referenced from:
      lxml::xpath::object::boolean() in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlXPathCastToString", referenced from:
      lxml::xpath::object::string() in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlFreeDoc", referenced from:
      lxml::xml::xml(void const*, unsigned long, char const*, char const*, int) in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlXPathFreeContext", referenced from:
      +[FNFMediaPresentationDescription presentationDescriptionWithContentsOfXml:mpdUrl:error:] in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlXPathCompile", referenced from:
      lxml::xpath::expression::expression(char const*) in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlXPathCastToNumber", referenced from:
      lxml::xpath::object::integer() in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlXPathNewContext", referenced from:
      lxml::xpath::xpath(lxml::xml const&, std::__1::function<void (_xmlXPathContext*)>) in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlXPathCompiledEval", referenced from:
      lxml::xpath::evaluate(lxml::xpath::expression const&) in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlFree", referenced from:
      lxml::xpath::object::string() in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
  "_xmlXPathRegisterNs", referenced from:
      +[FNFMediaPresentationDescription presentationDescriptionWithContentsOfXml:mpdUrl:error:] in FBAudienceNetwork(FNFMediaPresentationDescription.mm.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"

【问题讨论】:

  • 欢迎来到 Stack Overflow!就目前而言,我们很难为您提供帮助。请使用tour 并阅读How to Ask,然后相应地编辑问题。如果您要求我们调试您的代码,请包含代码。这称为Minimal, Complete, and Verifiable Example;确保您有样本输入、输出以及错误(如果有)。干杯。

标签: ios swift xcode unity3d ld


【解决方案1】:

看错误,好像少了:libxml2

转到Xcode -> Target-> General -> Linked Frameworks and Libraries,点击加号并添加libxml2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-11-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-01
    • 2012-05-15
    • 2013-06-23
    相关资源
    最近更新 更多