From fc87b09874e41d9c1002e1c23a5ff22bd30e0692 Mon Sep 17 00:00:00 2001 From: Chris McGee Date: Tue, 4 Nov 2025 08:47:15 -0500 Subject: [PATCH 1/2] Fix resolution of the xcode selector to the xcode version --- Sources/Swiftly/Install.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Swiftly/Install.swift b/Sources/Swiftly/Install.swift index 5e7ba2d2..d2a79a8e 100644 --- a/Sources/Swiftly/Install.swift +++ b/Sources/Swiftly/Install.swift @@ -509,7 +509,7 @@ struct Install: SwiftlyCommand { return .snapshot(firstSnapshot) case .xcode: - throw SwiftlyError(message: "xcode toolchains are not available from swift.org") + return .xcode } } } From 332f6e5bbbff798f0fe47ad7ba2ce0ea5715390e Mon Sep 17 00:00:00 2001 From: Chris McGee Date: Tue, 4 Nov 2025 09:00:44 -0500 Subject: [PATCH 2/2] Update Install.execute to throw an error with the xcode toolchain version --- Sources/Swiftly/Install.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Swiftly/Install.swift b/Sources/Swiftly/Install.swift index d2a79a8e..c7b5e8f9 100644 --- a/Sources/Swiftly/Install.swift +++ b/Sources/Swiftly/Install.swift @@ -299,7 +299,7 @@ struct Install: SwiftlyCommand { category = "development" } case .xcode: - fatalError("unreachable: xcode toolchain cannot be installed with swiftly") + throw SwiftlyError(message: "xcode toolchain is installed with Xcode") } let animation: ProgressReporterProtocol? =