I am saving some data in the keychain, but after each application update that data are lost. The same problem I have when I save something in the user defaults. This is important because I use it to store created a unique identifier. What can be wrong? Thanks for any tips.
I had the same issue with our latest app. What we found out is that Apple apparently is wiping the data from Keychain for pre iOS 8 apps if the newer app has minimum supported version of 8.0. However if the minimum supported version is set to iOS 7.0, the Keychain data is not wiped off.
So apparently all apps using Keychain will face this issue when they set the minimum supported version to iOS 8.0 and push to AppStore.
Loss in keychain data may be due to change in the keychain-access-groups
entitlement.
Keeping the same value for this key in old and new apps will solve the issue.
I am facing the same issue. And my deployment target is iOS 10.
I am storing JWT token in keychain using -
A0SimpleKeychain().setString(token, forKey:"user-jwt")
And using the following to retrieve it back -
A0SimpleKeychain().string(forKey: key)
I am seeing in production logs that for some users, the token is not getting fetched from keychain after app upgrade. Is it iOS issue or anything I am missing out here. Please suggest.
Recently saw this issue on iOS 12.4.
I am using Simple Keychain for this.
© 2022 - 2024 — McMap. All rights reserved.