问题
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