“An error occurred while accessing the keychain” when signing in using Firebase

后端 未结 2 634
刺人心
刺人心 2021-02-14 11:44

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 n

相关标签:
2条回答
  • 2021-02-14 12:24

    I found this issue in Firebase's release notes:

    Authentication state is shared between different apps when running on the iOS Simulator: Description: when running two or more applications that use Firebase Authentication on the same iOS simulator, there is a issue with the iOS keychain that causes the authentication state to be shared across the different applications. This means that if you sign in to an app, and later open a second app, you may find a user to be signed in into it. Workaround: either don't use two different applications with Authentication on the same simulator instance, or manually sign out from the applications between tests.

    Not sure if it's been fixed yet, but it seems to describe my situation when encountering the issue.

    0 讨论(0)
  • 2021-02-14 12:33

    Try turning on the Keychain Sharing in Capabilities of your projects' target. that worked for me. Keychain Sharing

    0 讨论(0)
提交回复
热议问题