Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase not usable in iOS app extensions since 3.8.0 due to GTMSessionFetcher sharedApplication #AskFirebase

I'm using Firebase in my latest app. After upgrading the pods to 3.10.0 the share extension of the app can't be built. The Firebase pods depend on GTMSessionFetcher which uses sharedApplication which is not available in app extensions.

I'm using the following pods in my extension:

pod 'Firebase/Core', '~> 3.7.0'
pod 'Firebase/Crash', '~> 3.7.0'
pod 'Firebase/Auth', '~> 3.7.0'
pod 'Firebase/Database', '~> 3.7.0'

I rolled back to version 3.7.0. This is the last version not relying on sharedApplication.

Will this be fixed in an upcoming version?

like image 539
cybergen Avatar asked Dec 02 '16 13:12

cybergen


1 Answers

This will be fixed in upcoming GTMSessionFetcher and Firebase versions.

In the meantime, since recent Firebase versions reference GTMSessionFetcher as a source pod, the offending code can be ifdef'ed or commented out for code running in app extensions:

enter image description here

like image 181
Paul Beusterien Avatar answered Oct 16 '22 18:10

Paul Beusterien