MLKit iOS:体系结构armv7的未定义符号

时间:2019-01-16 13:44:09

标签: ios objective-c architecture armv7 firebase-mlkit

我一直在尝试使用MLKitCardIO集成到cocoapod中。我通过cocoapod修复了所有警告,并且CardIO已成功构建。但是,当我将CardIO链接到我的应用并进行构建时,会出现此错误。我在整个互联网上进行搜索,并尝试了人们建议的另一种方法,但仍然无济于事。在集成/链接过程中我可能错过了任何步骤或设置?

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_FIRVisionImage", referenced from:
  objc-class-ref in libCardIO.a(CardIOView.o)
  "_OBJC_CLASS_$_FIRVision", referenced from:
  objc-class-ref in libCardIO.a(CardIOView.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:1)

我在“其他链接器”标志,标题搜索路径,框架搜索路径,“目标->构建设置”中的库搜索路径中添加了$(inherited),从而解决了该问题!祝您编码愉快!