3
尝试在安全链中添加项目时保持-50。secItemAdd在swift中保持返回-50错误
var query = [String:AnyObject]()
query[kSecClass as String] = kSecClassGenericPassword
query[kSecAttrAccount as String] = "a"
query[kSecValueData as String] = "b"
let result = SecItemAdd(query as CFDictionary, nil);
结果是-50。无法弄清楚为什么,需要帮助..提前致谢。
立即生效,非常感谢。 – user1470393
我有关于钥匙链的另一个问题,你能帮忙吗? http://stackoverflow.com/questions/34053049/seccopyerrormessagestring-gives-use-of-unresolved-identifier-in-swift – user1470393