I have an IOS app with Firebase enabled.
Now im currently trying to add a macOS swift app to this project but i cant figure it out how to do it.
( I know that there is an option to port IOS apps to macOS, but i want two separate apps with different functions, one for IOS and one for macOS )
There is no option (as far as i know) in Firebase Admin to add a macOS app so i created a new IOS app in Firebase Admin and tried to set up with the macOS app project. (most likely this is the problem with my whole question)
I get these errors in my AppDelegate when i run my macOS project:
The default Firebase app has not yet been configured. Add
[FIRApp configure];
(FirebaseApp.configure()
in Swift) to your application initialization.An uncaught exception was raised
Failed to get FirebaseApp instance. Please call FirebaseApp.configure() before using Firestore
Terminating app due to uncaught exception 'FIRIllegalStateException', reason: 'Failed to get FirebaseApp instance. Please call FirebaseApp.configure() before using Firestore'
Althougth i've used FirebaseApp.configure()
in my applicationDidFinishLaunching
.
Also i imported every single pod but nothing helped me.
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'FirebaseDatabase'
pod 'Firebase/ABTesting'
pod 'Firebase/Database'
pod 'Firebase/Firestore'
pod 'FirebaseFirestore'
pod 'Firebase/Functions'
pod 'Firebase/Messaging'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'
My question is that what could i possibly did wrong?
Or Firebase does not support macOS apps?
If yes then how can i use my existing Firebase IOS project with a new macOS Swift app?