ios - Symbol(s) not found for architecture ARM64 clang--error: linker command failed with exit code 1 (use -v to see invocation)
问题描述
当我尝试构建时出现此错误。我已经更新了我的 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)
"
解决方案
查看错误,您似乎缺少: libxml2
.
转到 Xcode -> Target-> General -> Linked Frameworks and Libraries,单击加号并添加libxml2
.
推荐阅读
- sas - 删除 SAS 中的重复子字符串
- javascript - (Vue 和 Firebase)我在将多个图像保存在数组中时遇到问题
- python - TF1 vs TF2,相同的随机种子,不同的结果
- android - 蓝牙扫描和安卓位置权限策略
- javascript - 如何仅在异步循环执行完成后执行某些语句
- database - 数据库设计中深度嵌套的一对多关系
- json - 在 Kotlin/Native 中使用 kotlinx.serialization 进行多态反序列化
- twig - 没有输入的树枝功能/过滤器?
- algorithm - 为什么这个 scala 函数使用映射比使用列表运行得更快?
- kubernetes-helm - 我如何在 kubernetes 上安装盛宴