Questions tagged [keychainitemwrapper]

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.

96 questions
2
votes
2 answers

KeychainWrapperItem stopped working in iOS 7.1

I recently installed iOS 7.1 simulator and the new Xcode 5.1. My App worked in iOS 7 fine. I'm using the KeychainItemWrapper class from Apple. After the update it crashed with the following message: *** Assertion failure in -[KeychainItemWrapper…
flashspys
  • 844
  • 9
  • 20
2
votes
2 answers

Keychain Wrapper erminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSZeroData _fastCharacterContents]

I am using the keychain wrapper found here: https://gist.github.com/1170641 Like this: .h : #import "KeychainItemWrapper.h" KeychainItemWrapper *keychainItem; .m: keychainItem = [[KeychainItemWrapper alloc] initWithIdentifier:@"login"…
donkey
  • 1,343
  • 13
  • 32
2
votes
0 answers

App crashing when releasing keyChainItemWrapper

I have a view in my app that shows a form (email, first name, last name, date of birth) which loads into the fields, the corresponding data from the keychain allowing the user to change it etc. This works fine when there are already details stored…
skeg0
  • 187
  • 1
  • 1
  • 10
2
votes
1 answer

Auto-login with the saved credentials from the KeychainItemWrapper

I'm using a KeychainItemWrapper to saved the login credentials, this function works fine for me, but I have several problems with the use of these stored credentials. Always my first view is the login view; the first time displays without…
user2359967
2
votes
1 answer

KeychainItemWrapper migrating data throws error

I'm using the ARCified KeychainItemWrapper and having trouble migrating the data in one keychain item to another item. Basically I'm trying to copy the contents from an app specific item to a shared item. For brevity I've only put in the user name…
DBD
  • 23,075
  • 12
  • 60
  • 84
1
vote
1 answer

What is the proper identifier to use when adding a keychain item using KeyChainItemWrapper?

I don't really understand what the identifier is or how it is used. Is it arbitrary? Is it my app name in reverse? Below I use "test" but should it be: "com.mydomain.myApp.test"? Or my app bundle identifier: …
user938797
  • 167
  • 3
  • 15
1
vote
0 answers

KeychainWrapper Objective C Identifier and Key questions

I’m new to both in app purchases and using the keychain. I am using Objective C and KeychainItemWrapper. For now I want to simply store a number in the keychain. I don’t want anyone outside the app to be able to change it, and while I don’t much…
user938797
  • 167
  • 3
  • 15
1
vote
0 answers

Fabric crashlytics showing error : Fatal Exception: NSInternalInconsistencyException. In IOS app

My project constantly reporting crash on fabrics. Here is the error log: Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x20a2a3518 __exceptionPreprocess 1 libobjc.A.dylib 0x20947e9f8…
Rj19
  • 305
  • 1
  • 6
  • 20
1
vote
1 answer

How to save one person UID globally to retrieve it in any ViewController in Swift

After successful registration, I am getting UID in LoginViewController. I am saving UID in LoginViewController. and I am retrieving UID in RegistrationViewController. but here I am getting nil for all person why? Please help me in the code. saving…
Swift
  • 1,074
  • 12
  • 46
1
vote
1 answer

How to check if user already register or not while registration in swift

I'm trying to check if a user is already registered or not in my app when registering. For every successful registration, I'm getting a UID in LoginViewcontroller url and I'm saving that UID in the keychain wrapper. I'm retrieving the UID value in…
Swift
  • 1,074
  • 12
  • 46
1
vote
2 answers

Retrieving password and username from keychainItemWrapper iOS

I'm trying to use the KeychainItemWrapper.h and keychainWrapperItemWrapper.m to store user credentials such as username and password. I currently store when user logs in for the first time like this: KeychainItemWrapper* keychain =…
1
vote
1 answer

ios keychain return nil value

I'm using the apple KEychainItemWrapper.The keychain returns values for the first time (and also as long as the app is in active or in background state), but the keychain is returning nil when the app is quit and opened again. I tested this on both…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
1
vote
1 answer

The UDID is always returning zero data from keychain in IOS?

I had an application in which I am saving [[[UIDevice currentDevice] identifierForVendor] UUIDString] on keychain like this: NSString *bundleId = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"]; NSString…
hacker
  • 8,919
  • 12
  • 62
  • 108
1
vote
0 answers

how to use keychainwrapper in iPhone device

when i use this in simulator it is working, but when i run it in iPhone device does not work. why this happen, how to do this? - (void) RememberUserAccount:(NSString *) userName password:(NSString *) password { //NSString *uuid = [[NSUUID UUID]…
Diego Peng
  • 79
  • 7
1
vote
1 answer

Keychain access in iOS for OAuth tokens

I'd like to use Keychain Services for iOS to store the OAuth access token and refresh token that my app need to perform Web services requests. I've been reading the Keychain Services Programming Guide and I downloaded the GenericKeychain sample…
AppsDev
  • 12,319
  • 23
  • 93
  • 186