an Objective-C wrapper for accessing a single keychain item, the sample code was originally created by Apple but now available in modified & modernized (for ARC) forms from a variety of sources.
Questions tagged [keychainitemwrapper]
96 questions
0
votes
1 answer
How many keyChain can I store in iOS?
I'm using keychainWrapper. The keychain in ios stored using a pre-defined constant, which are…

Eddie
- 1,903
- 2
- 21
- 46
0
votes
1 answer
Property deallocated while app stayed in memory
I am saving username/password info to keychain upon a user logging in. Later if I need the username I get the username from the keychain. I noticed this morning when navigating my app that my keychain property has apparently been deallocated from…

Adam Johns
- 35,397
- 25
- 123
- 176
0
votes
1 answer
iOS Remove Keychain Value
I'm using the Keychain like so:
KeychainItemWrapper *keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"LoginData" accessGroup:nil];
[keychain setObject:responseObject[@"TOK"] forKey:CFBridgingRelease(kSecAttrAccount)];
And wish to remove…

Simon.
- 1,886
- 5
- 29
- 62
0
votes
1 answer
Ad Hoc iOS App Crashing due to keychainItemWrapper
My app doesn't crash when I run it from XCode, but I created an IPA to use with TestFlight, and it crashes after the user attempts to log into the app. I believe it's due to using the keychainItemWrapper library defined here:…

scientiffic
- 9,045
- 18
- 76
- 149
0
votes
0 answers
Read Keychain while app comes to background on 'didEnterRegion' iBeacon
I am working on an iBeacon supported iOS app which requires to send out a HTTP request when the app comes to background from terminates state when it enters a region where a monitored iBeacon is situated in. All works fine excepts it fails to read…

chathuram
- 616
- 2
- 5
- 23
0
votes
1 answer
KeychainItemWrapper in iOS6
I'm using KeyChainItemWeapper.m in my app project to save the nickname and the password. In iOS7 works perfectly but in iOS 6.0, 6.1 it crashes. The error is:
*** Assertion failure in -[KeychainItemWrapper writeToKeychain],…

amurcia
- 801
- 10
- 26
0
votes
2 answers
fetching all items in keychain in one shot?
I started reading this apple sample for keychain and understood that they are fetching all the values for this keychain item associated to type kSecAttrGeneric. Then when someone tries to search for a key they do it form the cached value, is this…

thndrkiss
- 4,515
- 8
- 57
- 96
0
votes
0 answers
Can we get the path of an item stored in Keychain?
As in sumulator can we get the path of an item stored in Keychain from an iPhone device?

Dee
- 1,887
- 19
- 47
0
votes
2 answers
iOS7: How to store a key / bool value in keychain
I implement in-app purchases and all the products are non-consumable. My intention is to store bool values in the keychain for every product identifier, and later control the Core Data retrieves according to the stored bool values.
My question is:…

NCFUSN
- 1,624
- 4
- 28
- 44
0
votes
1 answer
iOS, Keychain: Wrong passcode output
OK. I set user passcode in the view controller:
KeychainItemWrapper *keychainWrapper =
[[KeychainItemWrapper alloc] initWithIdentifier:
[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] accessGroup:nil];
[keychainWrapper…

NCFUSN
- 1,624
- 4
- 28
- 44
0
votes
1 answer
How to store a password in iOS 7 using ARC
I'm working on an app for iOS 7 and am using ARC. I am using a web service so users have to log into the web service with a username and password. I'm know it's not good to just store the username and password as is so I would like to use keychain…

user2604504
- 697
- 2
- 14
- 29
0
votes
1 answer
iOS save a physical app receipt in Keychain?
I would like to store the physical in app purchase receipt within the keychain, and thus allow for it to be replicated between devices when the user has keychain set across devices.
My question is how to save the receipt (NSData) to…

NeilMortonNet
- 1,500
- 4
- 16
- 36
0
votes
1 answer
Value retrieval from KeychainItem
I tried retrieving a string from the KeyChainItem, which is stored as below:
@property (nonatomic, strong) KeychainItemWrapper *account;
if (account == nil) {
account = [[KeychainItemWrapper alloc] initWithIdentifier:@"test" accessGroup:nil]
…

Siddharthan Asokan
- 4,321
- 11
- 44
- 80
0
votes
1 answer
STKeychain fails to retrieve password after AppStore Update
Scenario:
Our app stores the backend token in the device's keychain (STKeychain, ex SFHFKeychainUtils).
Background fetch is disabled.
An upgrade was recently released.
We're getting reports of users having to re-sign in. This seems to be an issue…

Jorge Leandro Perez
- 932
- 5
- 15
0
votes
1 answer
iOS restore password in login box from keychain
I am saving username/password to keychain like so:
KeychainItemWrapper *keychainItem = [[KeychainItemWrapper alloc] initWithIdentifier:@"YourAppLogin" accessGroup:nil];
[keychainItem setObject:usernameField.text forKey:(__bridge…

Adam Johns
- 35,397
- 25
- 123
- 176