Firebase is not used in iOS application extensions since version 3.8.0 due to GTMSessionFetcher sharedApplication #AskFirebase

I am using Firebase in my latest application. After updating containers to 3.10.0, an application extension cannot be created. Firebase modules depend on GTMSessionFetcher , which uses sharedApplication , which is not available in application extensions.

I use the following modules 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 returned to version 3.7.0. This is the latest version, not relying on sharedApplication .

Will this be fixed in an upcoming version?

+5
source share
1 answer

This will be fixed in future versions of GTMSessionFetcher and Firebase.

Meanwhile, since recent versions of Firebase reference GTMSessionFetcher as source code, the violation code can be ifdef'ed or commented out for code running in application extensions:

enter image description here

+1
source

Source: https://habr.com/ru/post/1260714/


All Articles