我在
Xcode 8 / iOS 10 /
Swift 3中遇到Firebase的问题.
试图让Firebase Analytics全部设置.然而,在iOS10中,控制台将使用Firebase中的大量WARNING日志记录.当我在模拟器中运行iOS 9.3时,这些都不会发生.我采取了如下所述的确切步骤: https://firebase.google.com/docs/analytics/ios/start
试图让Firebase Analytics全部设置.然而,在iOS10中,控制台将使用Firebase中的大量WARNING日志记录.当我在模拟器中运行iOS 9.3时,这些都不会发生.我采取了如下所述的确切步骤: https://firebase.google.com/docs/analytics/ios/start
这是日志的样子:
<FIRAnalytics/INFO> Firebase Analytics v.3402000 started <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled <FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy,set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist <FIRInstanceID/WARNING> Failed to remove checkin auth credentials from Keychain Error Domain=com.google.iid Code=-34018 "(null)" <FIRInstanceID/WARNING> Error Failed to remove all tokens from keychain Error Domain=com.google.iid Code=-34018 "(null)" <FIRInstanceID/WARNING> FIRInstanceID AppDelegate proxy enabled,will swizzle app delegate remote notification handlers. To disable add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO <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> STOP!! Will reset deviceID from memory. <FIRInstanceID/WARNING> Error removing keypair status: -34018 <FIRInstanceID/WARNING> Unable to remove RSA keypair <FIRInstanceID/WARNING> Unable to generate keypair. <FIRAnalytics/WARNING> Failed to get InstanceID: Error Domain=com.firebase.iid Code=-34018 "(null)" <FIRInstanceID/WARNING> Failed to fetch default token Error Domain=com.firebase.iid Code=501 "(null)" UserInfo={msg=Missing device credentials. Retry later.} <FIRInstanceID/WARNING> Failed to retrieve the default GCM token after 5 retries
我也会收到以下错误,弹出大约每30秒(尽管错误首先不重复):
<FIRInstanceID/WARNING> STOP!! Will reset deviceID from memory.
在发布之前,我进行了研究,发现如果您启用功能中的钥匙串共享功能,则WARNING日志可能会消失.然而,我对此感到厌倦,因为没有提供其他文件或解释.而且我不知道这是否只是掩盖错误,或者这是一个安全的解决方案.
请告知最安全的方法来补救所有这些WARNING日志.
谢谢
解决方法
只是为了更新,当使用Xcode 8.2版本的模拟器时,这些错误不应再出现在最新版本的Firebase中.有一个问题(实际上是一对夫妇)与模拟器,和一些过度积极的日志记录InstanceID.