I am trying to store and retrieve a string value to my keychain, I have been using the example found here however when I call mySetObject method my app is crashing.
This is what the code looks like that I am using to access the keychain class method mySetObject
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Test keychain Wrapper for future use through out connectionClasses
KeychainWrapper *keychainWrapper = [[KeychainWrapper alloc] init];
// set key
[keychainWrapper mySetObject:@"myObj" forKey:@"entry1"]; // this is where my app falls over
// read key
NSString *myAwesomeID = [keychainWrapper myObjectForKey:@"myObj"];
NSLog(@"%@", myAwesomeID);
//..
the error I am reciving in my output is as follows
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't add the Keychain Item.'
*** First throw call stack:
any help would be greatly appreciated.