FIRInstanceID/WARNING STOP!! Will reset deviceID from memory [Xcode : Console Log]

三世轮回 提交于 2019-12-17 18:27:54

问题


After updating to XCode 8 GM(Swift 3)

Firebase started logging these error's in the Console:-

FIRInstanceID/WARNING STOP!! Will reset deviceID from memory.

FIRInstanceID/WARNING Failed to fetch default token Error Domain=com.firebase.iid Code=6 "(null)"

FIRInstanceID/WARNING Failed to retrieve the default GCM token after 5 retries


回答1:


Apparently Enabling your app's KeyChain Sharing in Capabilities does the trick!

After enabling your capabilities , app.entitlements should look something like this:-

Also See:- Firebase Group Talk




回答2:


You could try set FirebaseAutomaticScreenReportingEnabled to NO in your Info.plist file. It doesn't resolve problem, but makes Errors happening little less frequently, which makes reading console less painfully.

With FirebaseAutomaticScreenReportingEnabled == YES (which is default), error happens on every screen change. Of course setting flag to NO will disable screen reporting, so set it only of you are not using this functionality.

Errors happens only on simulator, so you may want to set this flag only for developing time.



来源:https://stackoverflow.com/questions/39550525/firinstanceid-warning-stop-will-reset-deviceid-from-memory-xcode-console-lo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!