소스 검색

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
     }