soffes / SAMKeychain

Simple Objective-C wrapper for the keychain that works on Mac and iOS
MIT License
5.4k stars 956 forks source link

iOS 12,iPhone X,Keychain data lost #198

Open qtechdrew opened 6 years ago

qtechdrew commented 6 years ago

We store an encrypted string in keychain as the password for Touch ID or Face ID login,but some of our users fail to load this string which make them unable to use Touch ID/Face ID login, is there any bugs that will cause this problem.BTW,most of the abnormal devices are iPhone X with iOS 12.0.1

yinanwang1 commented 5 years ago

Yes, we too. I tried to find why the device_id that is a number saved in the keychain didn't not find, but I don't know why all the time. So please have a look, Sir.

kuyeluofan commented 5 years ago

Yes, we too. I tried to find why the device_id that is a number saved in the keychain didn't not find, but I don't know why all the time. So please have a look, Sir.

6lihaitao commented 5 years ago

Load data form keychain when user locked iphone, I got error.The error code is errSecInteractionNotAllowed.what can I do to fix this error??

luzianscherrer commented 5 years ago

I am also facing the issue that sometimes keychain data gets lost. It seems to be related with turning the device off and on again but neither is it reproducble nor do I have any idea whether it's a SAMKeychain bug or a genereal iOS keychain problem.

LucaIaco commented 5 years ago

Hi everybody, as some of you may know, there are known and unsolved issues with Keychain in general, where access to data, in certain weird conditions results in a failure in a completely random way. Maybe the answer at the below link may help you to solve this issue:

https://stackoverflow.com/questions/51830841/intermittent-temporary-ios-keychain-failure/57400690#57400690