我正在使用Swift和Firestore制作一个应用,自昨天晚上以来,我的应用在执行时启动时崩溃:

FirebaseApp.configure()

这是错误消息:



第一个调用堆栈:
(
  0   CoreFoundation                      0x000000010925f1e6
__exceptionPreprocess + 294

......

)



我试图修复它,以创建一个新项目,然后再次下载“GoogleService-Info.plist”,但它仍然崩溃。

任何的想法 ?

最佳答案

  • 可以将以下两个键添加到Info.plist文件中:
  • FirebaseAppDelegateProxyEnabled设置为YES
  • FirebaseScreenReportingEnabled设置为NO
  • 在将Firebase用作以下用途之前,还将 Firebase应用程序配置为 didFinishLaunchingWithOptions 方法内的 AppDelegate.swift 文件
    FirebaseApp.configure()
  • 10-07 19:48
    查看更多