Skip to content
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

Keychain returns nil randomly #22

Closed
yusuftor opened this issue May 13, 2016 · 8 comments
Closed

Keychain returns nil randomly #22

yusuftor opened this issue May 13, 2016 · 8 comments

Comments

@yusuftor
Copy link

Occasionally a nil value is returned when trying to retrieve a string from the Keychain. There's no way to reproduce it, it appears to be random. Any one else had this problem, or know a fix for this? Will probably move away from KeychainSwift if not.

@evgenyneu
Copy link
Owner

Hi @yusuftor, this issue is probably similar to #15. I have seen it myself many times and it is a very serious one. I do not know any cure for this at the moment. Regards.

@yusuftor
Copy link
Author

Do you know if this issue still occurs with Apple's keychain wrapper sample code?

@evgenyneu
Copy link
Owner

I do not know, never used this wrapper. If you are going to try other libraries or this wrapper, feel free to share your experience here, it will be very useful.

@andi357
Copy link

andi357 commented Jul 1, 2016

In my experience this happens if you access the keychain too often in a short period of time. So I guess this isn't actually an issue with this library, since we had this problem with other libraries as well.

@danlniel
Copy link

here i got the same issue

@evgenyneu
Copy link
Owner

Hello people, here is an Xcode 8 update. As you probably already know, one needs to enable Keychain Sharing in order for the Keychain to work in Xcode 8 / iOS 10. This is explained in details in this stackoverflow answer. Let me know if it works for you.

@johngoren
Copy link

Mon dieu. Thank you for letting us know about this new requirement that we activate Keychain Sharing. I had no idea and would have spent the rest of the day watching it nil silently.

@evgenyneu
Copy link
Owner

Closing the issue, feel free to reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants