0

我正在尝试将 Firebase 添加到我的项目中,尤其是他们的条形码阅读器框架(Vision)。我已按照以下说明进行操作:

https://www.mokacoding.com/blog/setting-up-firebase-without-cocoapods/

我已经添加了包含我想要的文件夹 - MLVision以及那里的所有框架。我已经导入了头文件,在我的主文件中也导入了 @import Firebase 和 @import GoogleMobileVision。

问题是尝试运行我的项目时出现以下错误:

Undefined symbols for architecture arm64:
  "_kFIRLoggerMLKit", referenced from:
      _FIRMLKitLog in FirebaseMLCommon(FIRMLKitLogger_1ae3a68aef0eb3884b887b653b700305.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

任何想法如何解决这个问题?提前致谢。

4

1 回答 1

0

FIRMLKitLog在 FirebaseMLCommon.framework 中定义。确保您已在链接中包含该框架。

~/sample/Carthage/Build/iOS/FirebaseMLCommon.framework (master) $ nm FirebaseMLCommon | grep FIRMLKitLog U _FIRMLKitLog FirebaseMLCommon(FIRMLKitLogger_4a96f641767bb7a6a0ec53c79b8453a7.o): ---------------- T _FIRMLKitLog

于 2018-11-21T15:10:40.220 回答