【问题标题】:MLKit iOS: Undefined symbols for architecture armv7MLKit iOS:架构 armv7 的未定义符号
【发布时间】:2019-06-10 14:50:22
【问题描述】:

我一直在尝试使用cocoapodMLKit 集成到CardIO 中。我修复了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)

【问题讨论】:

  • 我现在也面临同样的问题!架构 arm64 的未定义符号:“_OBJC_CLASS_$_FIRVisionImage”,引用自:ScanViewController.o 中的 objc-class-ref “_OBJC_CLASS_$_FIRVision”,引用自:ScanViewController.old 中的 objc-class-ref:未找到符号对于架构 arm64 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
  • @ltzdsp 你能修复它吗?我还是卡在这里
  • 是的,我在我的项目中修复了。我在“目标-> 构建设置”中的其他链接器标志、标题搜索路径、框架搜索路径、库搜索路径中添加了 $(inherited) 解决了这个问题!添加该标志,删除派生数据并运行 pod install。打开您的工作区文件。

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


【解决方案1】:

我在“Target -> Build Settings”中的其他链接器标志、标题搜索路径、框架搜索路径、库搜索路径中添加了$(inherited),解决了这个问题!快乐编码!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-29
    • 1970-01-01
    • 2011-09-19
    • 1970-01-01
    • 2013-03-16
    相关资源
    最近更新 更多