Unable to read data from Keychain

Hi,


In enterprise environment, I am unable to read some data from keychain in some scenarios. It would be helpful if somebody suggest here in which scenarios keychain specified API is unable to read data from keychain even though that value is present in keychain.



Regards,

SKP

Replies

It’s hard to answer this without more details as to the problem. To start, what platform are you working on? And if it’s macOS, are you using the traditional file-based keychain or the newer iOS-style keychain? And when things fail, what error do you get?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thanks for quick response. Adding some details like we are working on iPhone and having iOS-style keychain. We are getting message i.e “unable to read data from keychain” in log file.

We are getting message i.e “unable to read data from keychain” in log file.

I don’t think that message is logged by Apple code. You’ll have to find your code that’s logging the message and work backwards from there.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"