Thursday, 15 August 2013

Double KeyChainItemWrapper

Double KeyChainItemWrapper

I have a strange problem with the KeyChainItemWrapper.
I used to create 2 of them like so:
KeychainItemWrapper *kcWrapper = [[KeychainItemWrapper alloc]
initWithIdentifier:@"first" accessGroup:nil];
KeychainItemWrapper *kcWrapper1 = [[KeychainItemWrapper alloc]
initWithIdentifier:@"second" accessGroup:nil];
I would then set an object like this:
[kcWrapper setObject:@"something" forKey:(__bridge id)kSecValueData];
[kcWrapper1 setObject:@"something1" forKey:(__bridge id)kSecValueData];
This worked perfectly, until... nothing changed?
Now I get this error:
*** Assertion failure in -[KeychainItemWrapper writeToKeychain],
/Users/wingair/Documents/iOSProjects/tulipstempelkort-
ios/stempelkort/../KeychainItemWrapper.m:305
Been stuck here for quite some long time, any help is appreciated.

No comments:

Post a Comment