Start a new topic

Keychain access fail : SecItemCopyMatching returned -25300

OSX 10.9

Xcode 5.0.1



I did the the Xcode 5.0.1 update, then I rebooted my computer and I get this error :



2013-11-04 19:27:14.330 [26710:70b] KCSKeyChain.m:140 [ERROR] SecItemCopyMatching returned -25300 for key ' - password'!

2013-11-04 19:27:14.331 [26710:70b] KCSKeyChain.m:140 [ERROR] SecItemCopyMatching returned -25300 for key ' - authtoken'!

2013-11-04 19:27:14.333 [26710:70b] KCSKeyChain.m:140 [ERROR] SecItemCopyMatching returned -25300 for key ' - username'!



I can understand that when I'm calling this method :



if ([KCSUser activeUser] == nil) {

[KCSUser createAutogeneratedUser:^(KCSUser *user, NSError *errorOrNil, KCSUserActionResult result) {



}];

}



I have to store my credentials in my keychain. The error said that the key does not exist.



Here is what I tried :

- Reset iPhone Simulator

- Reset Keychain on my Mac

- I generated a new environments on my Kinvey console and updated my project with the new keys.

- Used the Apple KeychainItemWrapper GIST to reset programmatically my iOS keychain.



Anybody have an idea, what I can do to resolve this ?
1 Comment

Resolved. I was trying to call createAutogeneratedUser but the was crashing before the block was executed.
Login or Signup to post a comment