【发布时间】:2020-10-29 12:46:21
【问题描述】:
在将 Fabric/Crashlytics SDK 迁移到 FirebaseCrashlytics 时,我决定集成 cocoapods。
将 FirebaseCrashlytics 和 FirebaseAnalytics 添加到 Podfile 后,我在编译时收到此错误,我无法弄清楚为什么会发生:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GSDK_GTMLogger", referenced from:
objc-class-ref in GoogleIPhoneUtilities(GIPReachability.o)
"_kFirebaseCloudMessagingErrorDomain", referenced from:
-[FIRMessaging(FIRApp) configureMessaging:] in FirebaseMessaging(FIRMessaging+FIRApp_ed2c92d2ac2b5969ab6c5684759ab5bd.o)
-[FIRMessaging(FIRApp) exitApp:withError:] in FirebaseMessaging(FIRMessaging+FIRApp_ed2c92d2ac2b5969ab6c5684759ab5bd.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我错过了什么?
编辑:-我已经解决了 FirebaseMessaging 的第二个问题,在我的一生中,我无法弄清楚为什么我会遇到这个问题:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GSDK_GTMLogger", referenced from:
objc-class-ref in GoogleIPhoneUtilities(GIPReachability.o)
我现在使用的所有 Firebase 存储库现在都是通过 Cocoapods 设置的。
【问题讨论】:
标签: ios swift cocoapods crashlytics firebase-analytics