Search code examples
iosswiftfirebasecrashlyticsfirebase-analytics

iOS App crashed if installed googleApis with latest version of Firebase through cocoapod


In my app I have been trying installing latest version of Firebase crashlytics and Analytics pod file and it works fine as well. But the problem occurs when I also installed googleapis pod file (ie. used for speech recognition) with latest version of Firbase crashlytics and Analytics pod file it just crashed the app while launching the app. And the problem is I cannot degrade the Firbase version as it is going to deprecate soon.

Example:-

if installed only below two it worked fine

pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'

Crash occurs, if installed below googleapis pod file with Firbase pod files:-

pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod 'googleapis', :path => '.'

Any suggestion, how I can resolve this crash?? As I want to use googleapis pod file including latest version of Firebase(Crashlytics and Analytics)


Solution

  • Whoever is facing the same problem, here is the solution for that, all I did was just downgrade the Firebase Analytics version to support google apis.