SecItemAdd success, but app startup SecItemCopyMatching return NotFound
iOS 17.4 Keychain SecItemCopyMatching return NotFound
There’s not enough info here for me to give you any concrete suggestions. I will say that the SecItem API is quite tricky, and if you use it incorrectly you might see some very odd results. Have a read through:
If you need more help with this then I suggest that you:
-
Try isolating the problem into a small test project, to make sure that this is a SecItem issue rather than some other issue in your app that’s confusing things.
-
Post some details about the code that reproduces the problem. Specifically, show the properties you’re passing to
SecItemAdd
and the properties you’re passing toSecItemCopyMatching
.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"