0

Is it possible to have multiple targets in an app (dynamic frameworks) and initialise firebase in one of them (FirebaseApp.configure()) but then use it in all the modules (e.g. with Firestore.firestore())

alessandro gaboardi
  • 889
  • 3
  • 11
  • 26

1 Answers1

0

I believe it should be possible if Firebase is also linked as dynamic libraries, FirebaseCore is loaded before any other Firebase library, and there is not a need for FirebaseAnalytics which does not support being linked into a dynamic library.

More context about Firebase and dynamic/static linking at https://github.com/firebase/firebase-ios-sdk/blob/master/docs/firebase_in_libraries.md

Paul Beusterien
  • 27,542
  • 6
  • 83
  • 139