Watson Watson - 1 year ago 1013
Swift Question

App Delegate crashes because of Firebase initialization

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

Terminating app due to uncaught exception 'com.google.greenhouse', reason: 'Error Domain=com.google.greenhouse Code=-102 "Unable to correctly configure subspec Analytics" UserInfo={NSLocalizedFailureReason=Tracking ID must not be nil or empty., NSLocalizedDescription=Unable to correctly configure subspec Analytics}'

I have followed the Firebase guide from here

What can be the reason?
Also I don't intend to use google analytics as for now. Any fix?


Location of GoogleService-Info.plist

Note: I have removed the IDs and the Keys for this screenshot
GoogleService-Info.plist content

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download