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..."
result
comes from, for example – that will help us answer. – Nablus