Questions tagged [sfhfkeychainutils]
18 questions
38
votes
2 answers
iOS SFHFKeychainUtils failing *sometimes* with error -25308 errSecInteractionNotAllowed
I have this code getting back a password from the keychain for a given username NSString:
NSError *error = nil;
NSString *appName = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleNameKey];
NSString *pw = [SFHFKeychainUtils…

Simon East
- 2,516
- 2
- 18
- 21
16
votes
7 answers
SFHFKeychainUtils. iOS keychain. ARC compatible
I was wondering if anyone that was using the SFHFKeychainUtils managed to modify them to be compatible for ARC. More exactly the
NSDictionary *attributeResult = NULL;
NSMutableDictionary *attributeQuery = [query mutableCopy];
[attributeQuery…

Roland
- 388
- 1
- 4
- 21
7
votes
3 answers
OCUnit tests fail from the command line but work in Xcode when using Keychain Services
I'm using SFHFKeychainUtils to use Keychain Services in my app. I've written some OCUnit tests that verify the funcionality of this code. Everything works fine when I run the unit tests from Xcode on the iOS simulator or my device. However now I'm…

Kam Sheffield
- 1,231
- 1
- 14
- 16
7
votes
1 answer
SFHFKeychainUtils "forgot" my user's passwords
I'm using SFHFKeychainUtils for a while now. On my last update to the AppStore, it suddenly "forgot" my user's passwords. Meaning, when calling getPasswordForUsername for the same username and service, it doesn't return a result now. I don't print…

Eran
- 120
- 4
4
votes
1 answer
php authentication token + ios
I am developing an ios app where I am having the user login with a user id and password. The current flow of events is as below:
1) User enters user id and password.
2) Clicking the login button calls a php webservice which authenticates the user…

Mike G
- 751
- 3
- 12
- 21
3
votes
1 answer
SFHFKeychainUtilsErrorDomain error -2000
The operation could not be completed. (SFHFKeychainUtilsErrorDomain error -2000.)(trouble with password)
SFHFKeychainUtilsErrorDomain used by MKStorekit.

Yurec Antidipresant
- 107
- 4
2
votes
1 answer
iOS8/Simulator - error in SFHFKeychainUtils, SFHFKeychainUtilsErrorDomain error -34018
I have just downloaded XCode 6 and adjusted my application to run under it.
It seems to work just fine, however I use SFHFKeychainUtils, and when I run the application in the simulator I get the error:
error getting UUID: The operation couldn’t be…

Kendall Helmstetter Gelner
- 74,769
- 26
- 128
- 150
2
votes
3 answers
iOS app cannot be opened after update
We have an app live in the app store for almost an year, and we've been receiving several bad reviews from customer which cannot open the app after updating it.
Users have reported they are unable to launch the application following deleting and…

nebillo
- 1,257
- 10
- 21
2
votes
1 answer
How to use SFHFKeyChainUtils?
I've stored my credentials in the KeyChain in the Login.m class
[SFHFKeyChainUtils storeUsername:self.usernameField.text andPassword:self.passwordField.text forServiceName:@"myApp" updateExisting:TRUE error:&error];
Now when i delete from memory my…

Slavcho
- 2,792
- 3
- 30
- 48
1
vote
1 answer
Can I use Keychain Across iPhone Apps, from an SDK?
I am writing an SDK which will ship as a static library. Can I access the keychain to store data so that I can retrieve it in another app which also has my library? Seems like Apple would frown upon this, since I did not sign the apps, but am merely…

Genericrich
- 4,611
- 5
- 36
- 55
1
vote
1 answer
How to know if iPhone is in recovery mode from my App
All
I am working on an app where i m storing DeviceIdentifier in keychain(thanks to deprecated method in ios6 to fetch unique identifier all the time)for later use to identify that it is a allowed device to use app.
i am storing it in keychain ,…

Nikita255
- 15
- 5
1
vote
0 answers
App built with xcode 5 can't read password stored for app build with xcode 4.6.3
My password store doesn't seem to be compatible across different XCode builds.
I'm managing a password with SFHFKeychainUtils. If I build my app with XCode 4.6.3, then do a subsequent build with XCode 5.0, I am getting a (null) back from this…

HalR
- 11,411
- 5
- 48
- 80
1
vote
1 answer
Why is SFHFKeychainUtils failing with error errSecAuthFailed in a Cocoa app?
The debug build of some code utilizing SFHFKeychainUtils that is working without complaint on the mac which I'm developing on is triggering an error on another mac:
The code makes use of the following methods provided by…

Nate Chandler
- 4,533
- 1
- 23
- 32
0
votes
1 answer
How can I delete all values from SFHFKeychainUtils?
For deleting a value from keychain following code is available:
[SFHFKeychainUtils deleteItemForUsername:XYZ andServiceName:@"known" error:&err]
Is there any way to remove all stored values in keychain using only service name ?
My problem is that…

Tariq
- 9,861
- 12
- 62
- 103
0
votes
0 answers
I am getting SFHFKeychainUtilsErrorDomain error - 25299
I am trying to store the values into keychain by using SFHFKeyChain. But i am getting below error (This error is pop only in iOS 8.1 ).
can any one know about this error. Why this error is showing. Please help me.
Thanks in advance.

Thukaram
- 1,085
- 2
- 13
- 33