KeychainItemWrapper Crashing for iOS8

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".

+4
ios8 keychainitemwrapper
source share
1 answer

It seems that the first version of BETA does not support the Keychain Access developer API on the simulator. Hope this will be done soon.

Update: it looks like the problem is fixed in beta 2

+3
source share

All Articles