Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when accessing keychain with Firebase iOS 10

I'm having issues with keychain on iOS 10 devices. Failed to retrieve saved users, only happens with iOS 10 users, authentication is with Firebase. This is the error:

Error loading saved user when starting up: Error Domain=FIRAuthErrorDomain Code=17995 "An error occurred when accessing the keychain. The @c NSLocalizedFailureReasonErrorKey field in the @c NSError.userInfo dictionary will contain more information about the error encountered" UserInfo={NSLocalizedDescription=An error occurred when accessing the keychain. The @c NSLocalizedFailureReasonErrorKey field in the @c NSError.userInfo dictionary will contain more information about the error encountered, error_name=ERROR_KEYCHAIN_ERROR, NSLocalizedFailureReason=SecItemCopyMatching (0)}

like image 447
Tal Zion Avatar asked Sep 20 '16 14:09

Tal Zion


1 Answers

As mentioned in the link of the first answer there is a workaround:

  1. Go to your *.xcodeproj
  2. Go to the tab "Capabilities"
  3. Activate "Keychain Sharing"


Btw, is there an issue tracker for xcode?

like image 180
bash0ne Avatar answered Sep 27 '22 21:09

bash0ne