kishikawakatsumi / UICKeyChainStore

UICKeyChainStore is a simple wrapper for Keychain on iOS, watchOS, tvOS and macOS. Makes using Keychain APIs as easy as NSUserDefaults.
http://kishikawakatsumi.com
MIT License
3.08k stars 383 forks source link

Error 25308 on iOS 11 #162

Open sagarre opened 6 years ago

sagarre commented 6 years ago

I used to do all the developing for iOS 10 but now was forced to migrate to iOS 11. Immediately I encountered some erratic behavior. The app uses links like app://action/[id]/ and the id corresponds to TouchID protected keychain item. When the app is run for the first time with such link, it works like a charm, but, if it is not, the app works spontaneously - most often I just get different security errors (25308, 25293) without any usable description. Everything worked perfectly on iOS 10. I thought that it could be an issue with obsolete library, but even after the update nothing changed. It gets even more interesting since the app works as expected on 11.2.1, but does not on 11.1. Moreover, if I quickly switch to another app, the TouchID prompt may appear for that app (TouchID for "Safari" but with my description), but the result will be seen in my app should I switch to it. That is so frustrating. Any help will be much appreciated!