我正在使用Swift和Firestore制作一个应用,自昨天晚上以来,我的应用在执行时启动时崩溃:
FirebaseApp.configure()
这是错误消息:
第一个调用堆栈:
(
0 CoreFoundation 0x000000010925f1e6
__exceptionPreprocess + 294
......
)
我试图修复它,以创建一个新项目,然后再次下载“GoogleService-Info.plist”,但它仍然崩溃。
任何的想法 ?
最佳答案
Info.plist
文件中:FirebaseAppDelegateProxyEnabled
设置为YES
FirebaseScreenReportingEnabled
设置为NO
didFinishLaunchingWithOptions
方法内的 AppDelegate.swift 文件FirebaseApp.configure()