soffes / SAMKeychain

Simple Objective-C wrapper for the keychain that works on Mac and iOS
MIT License
5.4k stars 953 forks source link

Deleting password returns false but no error #190

Open aleksanderaleksic opened 6 years ago

aleksanderaleksic commented 6 years ago

Im trying call the SAMKeychain.deletePassword(forService: String, account: String, error: NSErrorPointer) but it returns false and the error pointer is nil. Any suggestion on how to figure out whats wrong?

this is my implementation:

let error:NSErrorPointer = nil
let v = SAMKeychain.deletePassword(forService: service, account: Key.account, error: error)
return (v,error?.pointee)