手动添加时解决 firebase 崩溃链接器问题所需的库

Libraries required to resolve firebase-crash linker issues when added manually

已添加 中提到的库,但我仍然遇到以下链接器错误以添加 firebase 崩溃。

"_FIRLogError", referenced from: -[FCRBreakpadController enableDebugger] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o) -[FCRBreakpadController startWithConfiguration:] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o) -[FCRBreakpadController createDirectory:] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o) +[FCRAnalytics messageDictionaryFromMessage:] in FirebaseCrash(FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o) -[FCRClient startWithConfiguration:error:] in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o) -[FCRCrashDump crashInfoFromSystemMetadata:] in FirebaseCrash(FCRCrashDump_ee5f791af340383d1b426338c1150e39.o) -[FCRUploadQueue initWithDirectory:maxSize:] in FirebaseCrash(FCRUploadQueue_2ce78e78dbb8f27676bd42e0302357a3.o) ... "_FIRLogInfo", referenced from: -[FCRClient startWithConfiguration:error:] in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o) ___49-[FCRBulkUploader uploadFileFromQueue:onSuccess:]_block_invoke in FirebaseCrash(FCRBulkUploader_af76d0815dcb863205f4ed96c30df68e.o)
"_GSDK_objc_getClass", referenced from: _____GetFIRAnalyticsClass_block_invoke in FirebaseCrash(FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o)
"_OBJC_CLASS_$_FIRApp", referenced from: objc-class-ref in NFAppDelegate.o objc-class-ref in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
"_OBJC_CLASS_$_FIRInstanceID", referenced from: objc-class-ref in FirebaseCrash(FCRCrashUploader_810ae32cc5e6c7f23936333033b9ebd7.o)
"_OBJC_CLASS_$_GSDK_PBDescriptor", referenced from: objc-class-ref in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
"_OBJC_CLASS_$_GSDK_PBGeneratedMessage", referenced from: _OBJC_CLASS_$_FCRMSGTimestamp in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_CLASS_$_FCRMSGCrashReport in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_CLASS_$_FCRMSGDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_CLASS_$_FCRMSGAndroidDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_CLASS_$_FCRMSGIOSDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_CLASS_$_FCRMSGApplication in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_CLASS_$_FCRMSGAndroidApplication in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) ... "_OBJC_CLASS_$_GSDK_PBMutableArray", referenced from: objc-class-ref in FirebaseCrash(FCRCrashDump_ee5f791af340383d1b426338c1150e39.o)
"_OBJC_CLASS_$_GSDK_PBRootObject", referenced from: _OBJC_CLASS_$_FCRMSGSdkRoot in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
"_OBJC_CLASS_$_GTMLogBasicFormatter", referenced from: objc-class-ref in FirebaseCrash(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o)
"_OBJC_CLASS_$_GTMLogNoFilter", referenced from: objc-class-ref in FirebaseCrash(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o)
"_OBJC_CLASS_$_GTMLogger", referenced from: objc-class-ref in FirebaseCrash(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o) objc-class-ref in FirebaseCrash(uploader_089041b840f448492d858d7daf481e47.o)
"_OBJC_METACLASS_$_GSDK_PBGeneratedMessage", referenced from: _OBJC_METACLASS_$_FCRMSGTimestamp in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_METACLASS_$_FCRMSGCrashReport in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_METACLASS_$_FCRMSGDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_METACLASS_$_FCRMSGAndroidDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_METACLASS_$_FCRMSGIOSDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_METACLASS_$_FCRMSGApplication in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) _OBJC_METACLASS_$_FCRMSGAndroidApplication in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o) ... "_OBJC_METACLASS_$_GSDK_PBRootObject", referenced from: _OBJC_METACLASS_$_FCRMSGSdkRoot in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
"_kFIRAppNameKey", referenced from: ___17+[FCRClient load]_block_invoke in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
"_kFIRAppReadyToConfigureSDKNotification", referenced from: +[FCRClient load] in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
"_kFIRLoggerCrash", referenced from: -[FCRBreakpadController enableDebugger] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o) -[FCRBreakpadController startWithConfiguration:] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o) -[FCRBreakpadController createDirectory:] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o) +[FCRAnalytics messageDictionaryFromMessage:] in FirebaseCrash(FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o) -[FCRClient startWithConfiguration:error:] in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o) -[FCRCrashDump crashInfoFromSystemMetadata:] in FirebaseCrash(FCRCrashDump_ee5f791af340383d1b426338c1150e39.o) ___49-[FCRBulkUploader uploadFileFromQueue:onSuccess:]_block_invoke in FirebaseCrash(FCRBulkUploader_af76d0815dcb863205f4ed96c30df68e.o) ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

已设置框架搜索路径和库搜索路径如下

试试 cocoapods 管理器: pod 'Firebase', '~> 3.9'

它可以简单地修复所有错误的依赖项。

https://cocoapods.org/pods/Firebase

或检查readme.md文件: 你必须添加所有这些库:

"(~> X)" below means that the SDK requires all of the frameworks from X. You should make sure to include all of the frameworks from X when including the SDK.

Analytics

  • FirebaseAnalytics.framework
  • FirebaseCore.framework
  • FirebaseInstanceID.framework
  • GoogleInterchangeUtilities.framework
  • GoogleSymbolUtilities.framework
  • GoogleToolboxForMac.framework

    Crash (~> Analytics)

  • FirebaseCrash.framework