         case Always:
             return kSecAttrAccessibleAlways as String
         case WhenPasscodeSetThisDeviceOnly:
-            if #available(OSX 10.10, *) {
+            if #available(OSX 10.10, iOS 8.0, *) {
                 return kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly as String
             } else {
                 fatalError("Unavailable 'Touch ID integration' on OS X versions prior to 10.10.")

    #endif

    #if os(iOS)
    private func setSharedPassword(password: String?, account: String, completion: (error: NSError?) -> () = { e -> () in }) {
        if let domain = server.host {
            SecAddSharedWebCredential(domain, account, password) { error -> () in

        
        query[kSecAttrAccount as String] = key
        #if os(iOS)
        if #available(iOS 8.0, *) {
            query[kSecUseNoAuthenticationUI as String] = kCFBooleanTrue
        }
        #endif
