Platform: iOS
TNS: 2.3.0
Firebase version: 3.6.3
After updating to Xcode 8 and the plugin to 3.6.3 (which supposedly were going to fix compatibility issues with Xcode 8), I am now unable to launch my app. The log prints the following:
2016-09-22 21:28:04.808: <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
2016-09-22 21:28:04.808: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
2016-09-22 21:28:05.974: <FIRInstanceID/WARNING> STOP!! Will reset deviceID from memory.
2016-09-22 21:28:05.974: <FIRInstanceID/WARNING> Failed to fetch default token Error Domain=com.firebase.iid Code=6 "(null)"
2016-09-22 21:28:08.806: <FIRInstanceID/WARNING> Error removing keypair status: -34018
2016-09-22 21:28:08.806: <FIRInstanceID/WARNING> Unable to remove RSA keypair
2016-09-22 21:28:09.014: <FIRInstanceID/WARNING> Unable to generate keypair.
2016-09-22 21:28:18.329: <FIRInstanceID/WARNING> STOP!! Will reset deviceID from memory.
2016-09-22 21:28:18.330: <FIRInstanceID/WARNING> Failed to fetch default token Error Domain=com.firebase.iid Code=6 "(null)"
2016-09-22 21:28:45.171: <FIRInstanceID/WARNING> STOP!! Will reset deviceID from memory.
2016-09-22 21:28:45.172: <FIRInstanceID/WARNING> Failed to fetch default token Error Domain=com.firebase.iid Code=6 "(null)"
2016-09-22 21:29:25.240: <FIRInstanceID/WARNING> STOP!! Will reset deviceID from memory.
2016-09-22 21:29:25.241: <FIRInstanceID/WARNING> Failed to fetch default token Error Domain=com.firebase.iid Code=6 "(null)"
2016-09-22 21:30:25.213: <FIRInstanceID/WARNING> STOP!! Will reset deviceID from memory.
2016-09-22 21:30:25.214: <FIRInstanceID/WARNING> Failed to fetch default token Error Domain=com.firebase.iid Code=6 "(null)"
2016-09-22 21:30:25.214: <FIRInstanceID/WARNING> Failed to retrieve the default GCM token after 5 retries
Been trying to google this error but no one has ever fixed it with an explanation to why it happened.
Is this the iOS Simulator?
@EddyVerbruggen - Yes, iOS simulator. However, I just noticed that the reason my app couldn't start was due to another issue. But the simulator (iOS 10) also brings me this alert when logging in to a Firebase account, which prevents a user to proceed:

EDIT - Device and simulators I've checked are:
Simulator, iPhone 7 (iOS 10) - Fails
Simulator, iPhone 6s (iOS 10) - Fails
Simulator, iPhone 6s (iOS 9.3) - Succeeds
Device, iPhone 6 (iOS 10) - Succeeds
So it is definitely an iOS 10 bug in the simulator (still works on my physical iOS 10 device). For now I can still use the 9.3 simulator. Just letting you know that the bug is there though.
EDIT 2 - It appears that this is a Firebase issue in itself, not your plugin. Found this blog post at Firebase mentioning the error given: https://firebase.googleblog.com/2016/08/ios-10-xcode-8-and-swift-3.html
I found a way to get rid of this issue as I had to fix it for my Cordova Google Sign-In plugin as well (and I think the Cordova Facebook plugin suffer the same issue):
Open the Xcode project via the platforms/ios/_appname_.xcworkspace/ file - then select your app's target, capabilities, enable 'Keychain sharing'.
Please let me know if this solves the issue for you as well.
I've automated this for the Cordova plugin, so I may be able to do the same for this one.
@EddyVerbruggen - Yes, that does fix the issue. However I am not sure that's a good idea to implement because I read somewhere (might've been in that article) that it could lead to security risks.
Good. I'll add it to the readme for now.
I'm afraid it's the only way to fix this.. that security risk is on Apple.
Automated this step in 3.8.0.
Having the same issue (everything was working fine till I updated TNS to 3.1.1) and I started getting this error (I've changed the Keychain Sharing as well, without any success).
Any ideas? Using version 4.0.3 of the plugin.
I have the same issue after updated to TNS to 3.1.+
Can you share the error you see?
[Firebase/InstanceID][I-IID009001] Error removing keypair status: -34018
[Firebase/InstanceID][I-IID010007] Unable to remove RSA keypair
... securityd[48003]: found no keychain client entitlements. task=XXX[47821]/1#0 LF=0 procid=XXXcs_flags=0x22000201
[Firebase/InstanceID][I-IID010003] Unable to generate keypair.
[Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-34018 "(null)"
... securityd[48003]: found no keychain client entitlements. task=XXX[47821]/1#0 LF=0 procid=XXX cs_flags=0x22000201
Yeah that's unrelated to this issue. I'm not sure what to do yet. Please use a real device to test on in the meanwhile.