From 9508cda5858ead20936bcf83405477d63cbf718d Mon Sep 17 00:00:00 2001 From: Brandon Evans Date: Mon, 25 Jan 2021 19:10:06 -0700 Subject: [PATCH] Remove invalid phone number index error Not relevant for Xcodes.app. --- Xcodes/AppleAPI/Sources/AppleAPI/Client.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift b/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift index cc135b6..21dd487 100644 --- a/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift +++ b/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift @@ -175,7 +175,6 @@ public enum AuthenticationState: Equatable { public enum AuthenticationError: Swift.Error, LocalizedError, Equatable { case invalidSession case invalidUsernameOrPassword(username: String) - case invalidPhoneNumberIndex(min: Int, max: Int, given: String?) case incorrectSecurityCode case unexpectedSignInResponse(statusCode: Int, message: String?) case appleIDAndPrivacyAcknowledgementRequired @@ -189,8 +188,6 @@ public enum AuthenticationError: Swift.Error, LocalizedError, Equatable { return "Invalid username and password combination. Attempted to sign in with username \(username)." case .appleIDAndPrivacyAcknowledgementRequired: return "You must sign in to https://appstoreconnect.apple.com and acknowledge the Apple ID & Privacy agreement." - case .invalidPhoneNumberIndex(let min, let max, let given): - return "Not a valid phone number index. Expecting a whole number between \(min)-\(max), but was given \(given ?? "nothing")." case .accountUsesTwoStepAuthentication: return "Received a response from Apple that indicates this account has two-step authentication enabled. xcodes currently only supports the newer two-factor authentication, though. Please consider upgrading to two-factor authentication, or open an issue on GitHub explaining why this isn't an option for you here: https://github.com/RobotsAndPencils/xcodes/issues/new" case .accountUsesUnknownAuthenticationKind: