So I have an app in production. For the past 3 weeks I am facing an issue. To add any item to keychain I the use the following query
[kSecClass: kSecClassGenericPassword,
kSecAttrService: type.rawValue,
kSecAttrAccount: identifier,
kSecValueData: dataFromString]
To retrieve data this is the query
[kSecClass: kSecClassGenericPassword,
kSecAttrService: type.rawValue,
kSecReturnData: true]
A bit more context:- Whether a user can log in or not using faceID 3 conditions are important
App should have been biometrics access
App should be able to fetch clientID from keychain
App should be able to fetch refreshToken from keychain
The app works fine for most users. But since the latest update we did for the app the retrieve method has been failing, more so in users with iOS 17.I am not able to replicate this locally. And it seems to be a recurring issue for certain users. What could be the source for the issue? And how to diagnose in production given it is not at all reproducible in our test environments.