FIRApp.Configure Crashing App

I use Xcode and Swift. My application continues to crash and says: "The default application has not yet been configured." But I have a setting in my appDelegate app. Has anyone encountered this issue?screenshot

+4
source share
1 answer

I use a method override init()in AppDelegate to configure Firebase. The Firebase documentation shows the configuration in the method didFinishLaunchingWithOptions, but I did not get this approach to work in my applications.

import UIKit
import Firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    override init() {
        FIRApp.configure()
    }

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        return true
    }
}
+6
source

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


All Articles