Error when adding Firebase to my iOS project without CocoaPods

457 Views Asked by At

I am trying to add Firebase to my project and especially their barcode reader frameworks (Vision). I have followed these instructions:

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

I have added the folder that contains what I want - MLVision with all the frameworks there. I have imported the header files, also did @import Firebase and @import GoogleMobileVision in my main file.

The problem is that I am getting the following error when trying to run my project:

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)

Any ideas how to solve this one? Thanks in advance.

1

There are 1 best solutions below

2
On

FIRMLKitLog is defined in FirebaseMLCommon.framework. Make sure you've included that framework in your link.

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