Can't Retrieve Data from keychain on iOS 17

Halo, I want to ask, i have an application. I get keychain value from i click apps launch but this case after i launch my apps keychain failed retrieve and my apps can't access this value after that the value change to nil. How to solve this problem ?

Answered by DTS Engineer in 803044022

You specifically called out iOS 17. Does that mean that this previously worked on iOS 16? Or is working on iOS 18.0rc? Or just that you’re only testing it on iOS 17?

Regardless, I’m not aware of any wide-ranging keychain problems on recent iOS releases. However, the SecItem API is notoriously tricky to use correctly. I have a bunch of general hints and tips in:

I Used SDK Valet to store keychain.

I can’t help you with this third-party wrapper. However, if you can dig into the wrapper to work out which SecItem call is failing, I’d be happy to help you with that.

Oh, and while we’re talking about wrappers, that’s something I specifically address in the Think Before Wrapping section of SecItem: Pitfalls and Best Practices.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I Used SDK Valet to store keychain. Is anyone same situation ?

You specifically called out iOS 17. Does that mean that this previously worked on iOS 16? Or is working on iOS 18.0rc? Or just that you’re only testing it on iOS 17?

Regardless, I’m not aware of any wide-ranging keychain problems on recent iOS releases. However, the SecItem API is notoriously tricky to use correctly. I have a bunch of general hints and tips in:

I Used SDK Valet to store keychain.

I can’t help you with this third-party wrapper. However, if you can dig into the wrapper to work out which SecItem call is failing, I’d be happy to help you with that.

Oh, and while we’re talking about wrappers, that’s something I specifically address in the Think Before Wrapping section of SecItem: Pitfalls and Best Practices.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Can't Retrieve Data from keychain on iOS 17
 
 
Q