0

该应用程序在 android 上运行良好,但是,当我在 iOS 上打开该应用程序时,它会立即崩溃而不会出现任何错误。

4

1 回答 1

0

我只是通过在函数顶部移动到下面的行来解决这个问题。

FirebaseApp.configure()

将上述行作为 didFinishLaunchingWithOptions 方法中的第一条指令。如下所示。

override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    FirebaseApp.configure()
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
于 2021-04-27T12:01:33.773 回答