Background:
I'm using Firebase for my apps login. I am using the login via email address functionality. The error started after starting to use the new xCode beta and updating the code to Swift 3
You can see a prototype of the problem here: https://bitbucket.org/gilosborne/firebasetest
The error:
When I try to log in I get the error, "An error occurred while accessing the keychain".
I am not using Apple keychain in any way, I believe it is referring to the mentions of keychain here: https://firebase.google.com/docs/auth/ios/errors
When I enter the email address wrong i get the correct error saying the email address doesn't match. And creating a new account still works also. I only get the error when login in correctly with an existing email address.
After looking into the firebase documentation above more I printed: print(error?.userInfo[NSLocalizedFailureReasonErrorKey])
and
print(error?.userInfo[NSUnderlyingErrorKey])
to try and learn more and got these console logs
Optional(SecItemAdd (-34018))
nil
I'm very new to iOS development, but I have spent hours or googling and racking my brain trying to fix this and have made zero progress.
Again, everything was working just fine. All I did was updated to Swift 3.0 and this started happening. Any help would be really awesome, thank you!
ps. Sorry if I missed anything, this is my first time posting.
Try turning on the Keychain Sharing in Capabilities of your projects' target. that worked for me. Keychain Sharing
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With