对于架构ARM64 clang找到的符号 - eRROR:链接命令失败,出口代码1(使用-v查看调用)



我尝试构建时会出现此错误。我已经更新了我的豆荚,但没有解决。

   "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)
"

查看错误,似乎您缺少了: libxml2

转到xcode-> target->常规 ->链接的框架和库,单击加号并添加libxml2

最新更新