App Delegate crashes because of Firebase initialization

前端 未结 9 1126
时光取名叫无心
时光取名叫无心 2021-02-02 08:12

I am getting this error that\'s causing the AppDelegate to crash

Terminating app due to uncaught exception \'com.google.greenhouse\', reason: \'Error Doma

相关标签:
9条回答
  • 2021-02-02 08:49

    Enable/Disable Services That You Want in my Case i only need Analytics so i set YES in IS_ANALYTICS_ENABLED and Other services set to NO.

    Source

    0 讨论(0)
  • 2021-02-02 08:51

    None of the solutions suggested here worked for me. The only thing that did was disabling Firebase Analytics, by adding "FIREBASE_ANALYTICS_COLLECTION_ENABLED" (Boolean) to GoogleService-Info.plist and setting it to "NO" (taken from: https://firebase.google.com/support/guides/disable-analytics)

    0 讨论(0)
  • 2021-02-02 08:52

    If it was not the location of your googleservice-info.plist file. Check your IS_ANALYTICS_ENABLED in the google plist. Maybe try changing it to the opposite of what it currently is. Also, you can add this launch option to get more debug info. Maybe it will help. Product -> Scheme -> Edit Scheme -> Arguments passed on launch:

    -FIRAnalyticsDebugEnabled 
    
    0 讨论(0)
  • 2021-02-02 08:55

    Delete From Podfile --> pod 'Google/Analytics'

    0 讨论(0)
  • 2021-02-02 08:56

    Make sure the GoogleService-Info.plist file is at the correct location i.e at the project root.

    I have added a screenshot of my project for you to check for reference.

    0 讨论(0)
  • 2021-02-02 09:02

    If would like to have both Google Analytics and Firebase. Please add two lines of code in GoogleService-Info file. Hope it will help

     <key>TRACKING_ID</key>
    <string>UA-123456789-0</string>
    
    0 讨论(0)
提交回复
热议问题