App Delegate crashes because of Firebase initialization

前端 未结 9 1127
时光取名叫无心
时光取名叫无心 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 09:08

    The accepted solution was to remove Google Analytics. But you actually can have both Firebase and Google Analytics. The solution I found was to add TRACKING_ID into GoogleService-Info.plist

    for example, add this:

    <dict>
        <key>TRACKING_ID</key>
        <string>UA-XXXXXX-X</string>
    

    Hope it helps someone!

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

    I asked the Firebase team on this issue and they have responded.

    Things you can check if the issue still persist. Check to see that the GoogleService-Info.plist file is at the correct location i.e at the project root. Check your IS_ANALYTICS_ENABLED in the google plist. Try changing it. Try removing pod 'Google/Analytics'. Add -FIRAnalyticsDebugEnabled to get more debugging information.

    My problem was solved by removing Google/Analytics pod.

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

    We had the exact same error and solved by removing

    pod 'Google/Analytics'
    

    from Podfile.

    In our case, we had been using GA and switch to Firebase + TagManager Solution, but just forgot to remove 'Google/Analytics' from Podfile. (Even we remove 'Google/Analytics', TagManager installs GoogleAnalytics for dependencies but errors are gone. Curious but it works...)

    0 讨论(0)
提交回复
热议问题