Firebase iOS Debug Console not logging anything

后端 未结 9 1844
南旧
南旧 2021-01-01 21:25

I have setup firebase in both the console and in the app. Everything configures correctly, and events appear to be logging in the app.

Output to console:

<         


        
9条回答
  •  粉色の甜心
    2021-01-01 22:24

    Alternatively you can do that inside your AppDelegate:

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
    
        var newArguments = ProcessInfo.processInfo.arguments
        newArguments.append("-FIRDebugEnabled")
        ProcessInfo.processInfo.setValue(newArguments, forKey: "arguments")
        
    } 
    

    ---EXTRA---

    And just some thoughts:

    Regarding

    Firebase.Analytics.setAnalyticsCollectionEnabled(true)
    

    If we inspect the method:

    So it's kind of POINTLESS...

提交回复
热议问题