-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APCKeychainStore.stringForKey randomly returning empty values #119
Comments
Could this be related to the infamous -34018 (errSecMissingEntitlement) keychain bug? |
I get no errors on compile or at run time. Also, I haven't enabled the Keychain sharing entitlement, since I don't expect to share the keychain data with other apps. |
Are you sure you don't see any keychain-related message logged onto the console at runtime when you get The bug I was mentioning would manifest by There's more info about this issue here. It has been a longstanding keychain issue on iOS, and unfortunately it's quite random. |
I see this error when I haven't yet set a passcode: APC_DEBUG in +[APCKeychainStore dataForKey:service:accessGroup:] at APCKeychainStore.m:105 => SecItemCopyMatching query failed with error code: 4294941996i But an error is expected there. I haven't recently repro'd the issue of unexpected missing values. |
…phview_changes Feature/graphview changes
I'm seeing unpredictable behavior with APCKeychain, where APCKeychainStore.stringForKey incorrectly returns an empty value about 1/3 of the time. Where APCKeychainStore incorrectly returns empty values, I can force-close the app and see the correct values returned on subsequent queries.
I'm getting and setting keychain values via Swift, like this:
The text was updated successfully, but these errors were encountered: