Firebase配置失败-Swift

卢卡·达万佐(Luca Davanzo):

在我的应用程序中,我成功使用了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)

有什么建议吗?

Michal Klein:

我只是注意到它开始在我身上发生,而我的travis版本在Firebase 3.16中失败了。我降级到3.7.1,这是我之前在该项目中使用的版本,并且它可以再次工作。

我没有时间进一步研究它,但这是一个快速解决方案。这可能是Firebase的错误,或者他们可能已更改了某些内容,并且设置现在有所不同。

编辑:显然回滚到3.15足够好。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章