浏览代码

Hotfix build error on watchOS

kishikawa katsumi 10 年之前
父节点
当前提交
a4a4d2f5d0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Lib/KeychainAccess/Keychain.swift

+ 2 - 0
Lib/KeychainAccess/Keychain.swift

@@ -1011,11 +1011,13 @@ extension Options {
             query[AttributeAuthenticationType] = authenticationType.rawValue
         }
 
+        #if !os(watchOS)
         if #available(iOS 8.0, OSX 10.10, *) {
             if authenticationPrompt != nil {
                 query[UseOperationPrompt] = authenticationPrompt
             }
         }
+        #endif
         
         return query
     }