浏览代码

Preventing the user from using clear on macOS

Yannick Weiss 6 年之前
父节点
当前提交
0f9e28c424
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Sources/KeychainSwift.swift

+ 1 - 0
Sources/KeychainSwift.swift

@@ -266,6 +266,7 @@ open class KeychainSwift {
   
   */
   @discardableResult
+  @available(macOS, unavailable, message: "Not implemented on macOS, call delete for every key.")
   open func clear() -> Bool {
     // The lock prevents the code to be run simlultaneously
     // from multiple threads which may result in crashing