I am using KeychainItemWrapper for my application using the following line of code
KeychainItemWrapper *currentUser = [[KeychainItemWrapper alloc] initWithIdentifier:@"com.example" accessGroup:nil]; [currentUser setObject:accountString forKey:CFBridgingRelease(kSecAttrAccount)];
accountString is a string containing my user information.
The code works fine with iOS7, but crashes with iOS8.
I'm not sure what I'm doing wrong. Can someone help! I am running the application on a simulator.
update: here is the crash
* Approval error in - [KeychainItemWrapper writeToKeychain]
* Application termination due to an undetected exception "NSInternalInconsistencyException", reason: "Failed to add Keychain element".
ios8 keychainitemwrapper
Karthik
source share