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