sfhfkeychainutils

iOS SFHFKeychainUtils failing *sometimes* with error -25308 errSecInteractionNotAllowed

ⅰ亾dé卋堺 提交于 2019-12-29 10:16:08
问题 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 getPasswordForUsername:username andServiceName:appName error:&error]; if(error != nil) // log the error Most of the time for most users this all works fine - but for some specific users this call seems to fail (and carry on failing) where it

iOS app cannot be opened after update

﹥>﹥吖頭↗ 提交于 2019-12-22 11:37:11
问题 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 subsequently reinstalling the application. One user did indicate they could launch the application only following a factory reset of their iPhone. We believed the issue was related to the Keychain, since this seems to be persistent in the system. For

iOS app cannot be opened after update

风流意气都作罢 提交于 2019-12-06 10:35:58
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 subsequently reinstalling the application. One user did indicate they could launch the application only following a factory reset of their iPhone. We believed the issue was related to the Keychain, since this seems to be persistent in the system. For this reason we updated the third party library we are using to access the keychain to https://github

OCUnit tests fail from the command line but work in Xcode when using Keychain Services

拥有回忆 提交于 2019-12-04 20:46:43
问题 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 trying to set up a CI server and the test is failing when it is run via the command line with error code -25291. Looking that up on Apple's documentation tells me: No trust results are available (errSecNotAvailable). I've linked the Security

OCUnit tests fail from the command line but work in Xcode when using Keychain Services

*爱你&永不变心* 提交于 2019-12-03 13:26:03
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 trying to set up a CI server and the test is failing when it is run via the command line with error code -25291. Looking that up on Apple's documentation tells me: No trust results are available (errSecNotAvailable). I've linked the Security.framework to my unit test project, it seems like from what I have read on the web this is all I should need to

iOS SFHFKeychainUtils failing *sometimes* with error -25308 errSecInteractionNotAllowed

痴心易碎 提交于 2019-11-29 19:45:12
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 getPasswordForUsername:username andServiceName:appName error:&error]; if(error != nil) // log the error Most of the time for most users this all works fine - but for some specific users this call seems to fail (and carry on failing) where it returns the following error: The operation couldn’t be completed. (SFHFKeychainUtilsErrorDomain error -25308.

SFHFKeychainUtils. iOS keychain. ARC compatible

六月ゝ 毕业季﹏ 提交于 2019-11-27 12:52:08
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 setObject: (id) kCFBooleanTrue forKey:(__bridge id) kSecReturnAttributes]; OSStatus status = SecItemCopyMatching((CFDictionaryRef) attributeQuery,(CFTypeRef *)(attributeResult)); I tried OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef) attributeQuery,(CFTypeRef *)(attributeResult)); also CFTypeRef subAttributeResult = (CFTypeRef *)(objc

SFHFKeychainUtils. iOS keychain. ARC compatible

此生再无相见时 提交于 2019-11-26 16:16:38
问题 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 setObject: (id) kCFBooleanTrue forKey:(__bridge id) kSecReturnAttributes]; OSStatus status = SecItemCopyMatching((CFDictionaryRef) attributeQuery,(CFTypeRef *)(attributeResult)); I tried OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)