                     throw securityError(status: status)
                 }
             }
+            #else
+                status = SecItemUpdate(query, attributes)
+                if status != errSecSuccess {
+                    throw securityError(status: status)
+                }
+            #endif
         case errSecItemNotFound:
             let (attributes, error) = options.attributes(key: key, value: value)
             if let error = error {

        
        query[kSecAttrAccount as String] = key
        #if os(iOS)
        if floor(NSFoundationVersionNumber) > floor(NSFoundationVersionNumber_iOS_7_1) {
            query[kSecUseNoAuthenticationUI as String] = kCFBooleanTrue
        }
        #endif

    
    private let options: Options
    
    // MARK:
    
    public convenience init() {
