Error saving in the keychain with iphone sdk
问题 I use the Apple wraper for the keychain, and try to save a item on it (running in simulator, ios 4.1). I have not experience with the keychain before. I get this error: Couldn't add the Keychain Item. Error - 25299 In KeychainItemWrapper.m line 304: // No previous item found; add the new one. result = SecItemAdd((CFDictionaryRef)[self dictionaryToSecItemFormat:keychainItemData], NULL); NSAssert( result == noErr, @"Couldn't add the Keychain Item." ); This is how I do the save: - (void) saveKey