Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred when accessing the keychain on IphoneSimulator #7

Open
mruani opened this issue Mar 26, 2024 · 1 comment
Open

An error occurred when accessing the keychain on IphoneSimulator #7

mruani opened this issue Mar 26, 2024 · 1 comment
Assignees

Comments

@mruani
Copy link

mruani commented Mar 26, 2024

Hi Darle,
I wanted to reach out and express my admiration for your app. I've followed your setup instructions diligently, and everything works flawlessly on Android. However, I've encountered an issue when attempting to log in or sign up using the iPhone Simulator:

Foundation.NSErrorException: Error Domain=FIRAuthErrorDomain Code=17995 "An error occurred when accessing the keychain. The NSLocalizedFailureReasonErrorKey field in the NSError.userInfo dictionary will contain more information about the error encountered" UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_KEYCHAIN_ERROR, NSLocalizedFailureReason=SecItemAdd (-34018), NSLocalizedDescription=An error occurred when accessing the keychain. The NSLocalizedFailureReasonErrorKey field in the NSError.userInfo dictionary will contain more information about the error encountered} at ToDoApp.iOS.Auth.FirebaseAuthentication.RegisterWithEmailAndPassword (System.String username, System.String email, System.String password) [0x00040] in /Users/.../Projects/Xamarin-ToDoApp/ToDoApp/ToDoApp/ToDoApp.iOS/Auth/FirebaseAuthentication.cs:37

Could you please advise if there are additional steps I need to take, such as registering Certificates, Identifiers, and/or Profiles on the Apple developer account?
Thank you in advance.

@gheorghedarle gheorghedarle self-assigned this Apr 26, 2024
@gheorghedarle
Copy link
Owner

Hello @mruani I didn't test the app on iOS, but yes you will need at least a developer certificate from developer.apple.com.
To fix the problem you probably need to check Keychain in the Entitlements.plist and add Entitlements.plist for your build configuration for iPhoneSimulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants