iOS扩展-致命例外:com.firebase.core默认应用已配置。
答案 0 :(得分:0)
从该消息很明显,您的应用两次调用了FIRApp's
configure函数。它应该调用一次。最好的调用位置是在func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool
中的AppDelegate
中。
为了确定从哪里调用它,可以使用两种方法。
CMD + Shift + F
并搜索configure
关键字并从结果中识别。