         guard let oauthVerifier = decoder
             .decodeObject(of: NSString.self,
                           forKey: NSCodingKeys.oauthVerifier) as String? else {
-            if #available(iOS 9, *) {
+            if #available(iOS 9, OSX 10.11, *) {
                     let error = CocoaError.error(.coderValueNotFound)
                     decoder.failWithError(error)
             }

        guard let oauthRefreshToken = decoder
            .decodeObject(of: NSString.self,
                          forKey: NSCodingKeys.oauthRefreshToken) as String? else {
            if #available(iOS 9, *) {
                let error = CocoaError.error(.coderValueNotFound)
                decoder.failWithError(error)
            }

        guard let consumerSecret = decoder
            .decodeObject(of: NSString.self,
                          forKey: NSCodingKeys.consumerSecret) as String? else {
            if #available(iOS 9, OSX 10.11, *) {
                let error = CocoaError.error(.coderValueNotFound)
                decoder.failWithError(error)
            }
