Trying to use SecCopyErrorMessageString to interpret errorCode. in swift :
var result: OSStatus
result = SecItemAdd(query as CFDictionary, nil);
if result != errSecSuccess {
let errorDescription = SecCopyErrorMessageString(result,nil)
// NSLog("Keychain Error: %@", errorDescription)
The error of "Unresolved identifier" starts from "SecCopyError..."
The SecCopyErrorMessageString
function only became available on iOS in version 11.3. Prior to that, it could only be used on OS X.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With