Firebase配置失败 – Swift
发布时间:2020-12-14 05:48:50 所属栏目:百科 来源:网络整理
导读:在我的应用程序中,我成功使用了Firebase,在AppDelegate中我进行了设置: // ### Initialize FirebaseFIRApp.configure() 现在我对相关目标进行一些单元测试,当我启动它时,我得到错误: 2017-04-14 14:53:22.351 MyProject[28753] Error [Firebase/Core][
在我的应用程序中,我成功使用了Firebase,在AppDelegate中我进行了设置:
// ### Initialize Firebase FIRApp.configure() 现在我对相关目标进行一些单元测试,当我启动它时,我得到错误: 2017-04-14 14:53:22.351 MyProject[28753] <Error> [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist. 2017-04-14 14:53:22.354 MyProject[28753] <Error> [Firebase/Messaging][I-IID001000] Firebase is not set up correctly. Sender ID is nil or empty. 2017-04-14 14:53:22.356 MyProject[28753] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.3800000 started 2017-04-14 14:53:22.356 MyProject[28753] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled 2017-04-14 14:53:22.381 MyProject[28753:712475] *** Terminating app due to uncaught exception 'com.firebase.instanceid',reason: 'Could not configure Firebase InstanceID. Google Sender ID must not be nil or empty.' 版本: Firebase/Core (3.16.0) Firebase/Messagging (3.16.0) 任何建议?
我刚刚注意到它开始发生在我身上,我的travis版本因Firebase 3.16而失败。我降级到3.7.1,这是我以前在项目中的版本,它再次运行。
我没有时间去研究它,但这是一个快速修复。它可能是Firebase错误,或者它们可能已经改变了某些内容,现在设置也不同了。 编辑:显然回滚到3.15工作得很好。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |