【发布时间】:2017-01-03 00:21:44
【问题描述】:
我使用 Xcode 8.0 beta 5 或 6 创建空的 swift 项目,并使用像 Firebase 指南这样的 cocoapods 导入 Firebase。导入过程中一切正常。我用FIRApp.Configure()comment 配置firebase。我可以处理身份验证,但是当我尝试访问数据库时它不起作用。
FIRApp.h 中的构建时间错误,例如:
"Conflicting nullability specifier on return types, 'nullable' conflicts with existing specifier 'non null'"
Screenshot of FIRApp.h Build-time error
控制台中还有这些错误:
2016-08-26 13:00:32.719: <FIRInstanceID/WARNING> STOP!! Will reset deviceID from memory.
2016-08-26 13:00:32.719: <FIRInstanceID/WARNING> Failed to fetch default token Error Domain=com.firebase.iid Code=6 "(null)"
2016-08-26 13:02:08.329: <FIRInstanceID/WARNING> Failed to retrieve the default GCM token after 5 retries
我无法解决问题。
【问题讨论】:
-
我有几乎相同的警告。我一直忽略它们,因为一切正常。
-
@TarvoMäesepp 我在我的应用中尝试登录或注册新用户时收到此错误,
-
请看stackoverflow.com/questions/38456471/…。它对我有帮助。