手动添加时解析firebase-crash链接器问题所需的库

时间:2016-11-10 10:24:49

标签: ios objective-c firebase firebase-crash-reporting

添加了Linking error on Firebase 3.7.0 for iOS Application中提到的库,但我仍然遇到链接器错误,因为添加了firebase崩溃。

  

" _FIRLogError",引自:          - FirebaseCrash中的[FCRBreakpadController enableDebugger](FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)          - FirebaseCrash中的[FCRBreakpadController startWithConfiguration:](FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)          - FirebaseCrash中的[FCRBreakpadController createDirectory:](FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)         FirebaseCrash中的[FCRAnalytics messageDictionaryFromMessage:](FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o)          - FirebaseCrash中的[FCRClient startWithConfiguration:error:](FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)          - FirebaseCrash中的[FCRCrashDump crashInfoFromSystemMetadata:](FCRCrashDump_ee5f791af340383d1b426338c1150e39.o)          - FirebaseCrash中的[FCRUploadQueue initWithDirectory:maxSize:](FCRUploadQueue_2ce78e78dbb8f27676bd42e0302357a3.o)         ..." _FIRLogInfo",引自:          - FirebaseCrash中的[FCRClient startWithConfiguration:error:](FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)         ___ 49- [FCRBulkUploader uploadFileFromQueue:onSuccess:] _ block_invoke in   FirebaseCrash(FCRBulkUploader_af76d0815dcb863205f4ed96c30df68e.o)
  " _GSDK_objc_getClass",引自:         _____GetFIRAnalyticsClass_block_invoke在FirebaseCrash中(FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o)
  " _OBJC_CLASS _ $ _ FIRApp",引自:         NFAppDelegate.o中的objc-class-ref         FirebaseCrash中的objc-class-ref(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
  " _OBJC_CLASS _ $ _ FIRInstanceID",引自:         FirebaseCrash中的objc-class-ref(FCRCrashUploader_810ae32cc5e6c7f23936333033b9ebd7.o)
  " _OBJC_CLASS _ $ _ GSDK_PBDescriptor",引自:         FirebaseCrash中的objc-class-ref(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
  " _OBJC_CLASS _ $ _ GSDK_PBGeneratedMessage",引自:         FirebaseCrash中的_OBJC_CLASS _ $ _ FCRMSGTimestamp(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_CLASS _ $ _ FCRMSGCrashReport(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_CLASS _ $ _ FCRMSGDevice(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_CLASS _ $ _ FCRMSGAndroidDevice(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_CLASS _ $ _ FCRMSGIOSDevice(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_CLASS _ $ _ FCRMSGApplication(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_CLASS _ $ _ FCRMSGAndroidApplication(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         ..." _OBJC_CLASS _ $ _ GSDK_PBMutableArray",引自:         FirebaseCrash中的objc-class-ref(FCRCrashDump_ee5f791af340383d1b426338c1150e39.o)
  " _OBJC_CLASS _ $ _ GSDK_PBRootObject",引自:         FireBSCrash中的_OBJC_CLASS _ $ _ FCRMSGSdkRoot(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
  " _OBJC_CLASS _ $ _ GTMLogBasicFormatter",引自:         FirebaseCrash中的objc-class-ref(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o)
  " _OBJC_CLASS _ $ _ GTMLogNoFilter",引自:         FirebaseCrash中的objc-class-ref(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o)
  " _OBJC_CLASS _ $ _ GTMLogger",引自:         FirebaseCrash中的objc-class-ref(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o)         FirebaseCrash中的objc-class-ref(uploader_089041b840f448492d858d7daf481e47.o)
  " _OBJC_METACLASS _ $ _ GSDK_PBGeneratedMessage",引自:         FirebaseCrash中的_OBJC_METACLASS _ $ _ FCRMSGTimestamp(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_METACLASS _ $ _ FCRMSGCrashReport(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_METACLASS _ $ _ FCRMSGDevice(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_METACLASS _ $ _ FCRMSGAndroidDevice(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_METACLASS _ $ _ FCRMSGIOSDevice(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_METACLASS _ $ _ FCRMSGApplication(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         FirebaseCrash中的_OBJC_METACLASS _ $ _ FCRMSGAndroidApplication(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)         ..." _OBJC_METACLASS _ $ _ GSDK_PBRootObject",引自:         FireNetCrash中的_OBJC_METACLASS _ $ _ FCRMSGSdkRoot(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
  " _kFIRAppNameKey",引自:         ___ 17+ [FCRClient load] _block_invoke在FirebaseCrash中(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
  " _kFIRAppReadyToConfigureSDKNotification",引自:         FirebaseCrash中的[FCRClient load](FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
  " _kFIRLoggerCrash",引自:          - FirebaseCrash中的[FCRBreakpadController enableDebugger](FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)          - FirebaseCrash中的[FCRBreakpadController startWithConfiguration:](FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)          - FirebaseCrash中的[FCRBreakpadController createDirectory:](FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)         FirebaseCrash中的[FCRAnalytics messageDictionaryFromMessage:](FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o)          - FirebaseCrash中的[FCRClient startWithConfiguration:error:](FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)          - FirebaseCrash中的[FCRCrashDump crashInfoFromSystemMetadata:](FCRCrashDump_ee5f791af340383d1b426338c1150e39.o)         ___ 49- [FCRBulkUploader uploadFileFromQueue:onSuccess:] _ block_invoke in   FirebaseCrash(FCRBulkUploader_af76d0815dcb863205f4ed96c30df68e.o)         ... ld:找不到架构x86_64 clang的符号:错误:链接器命令失败,退出代码为1(使用-v查看   调用)

已设置框架搜索路径和库搜索路径如下 enter image description here

1 个答案:

答案 0 :(得分:0)

尝试cocoapods经理: pod 'Firebase', '~> 3.9'

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

https://cocoapods.org/pods/Firebase

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

  

"(〜> X)"下面表示SDK需要所有框架   X.你应该确保包含X中的所有框架   包括SDK。

     

分析

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

         

    崩溃(〜>分析)

  •   
  • FirebaseCrash.framework

  •