Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

EDIT:

Location of GoogleService-Info.plist

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

like image 398
MrDank Avatar asked Jun 06 '16 15:06

MrDank


1 Answers

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!

like image 144
ordinaryman09 Avatar answered Oct 14 '22 14:10

ordinaryman09