Skip to content

Commit f063d91

Browse files
authored
Fix resolution of the xcode selector to the xcode version (#455)
* Fix resolution of the xcode selector to the xcode version * Update Install.execute to throw an error with the xcode toolchain version
1 parent 8d37f6a commit f063d91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Swiftly/Install.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ struct Install: SwiftlyCommand {
305305
category = "development"
306306
}
307307
case .xcode:
308-
fatalError("unreachable: xcode toolchain cannot be installed with swiftly")
308+
throw SwiftlyError(message: "xcode toolchain is installed with Xcode")
309309
}
310310

311311
let animation: ProgressReporterProtocol? =
@@ -515,7 +515,7 @@ struct Install: SwiftlyCommand {
515515

516516
return .snapshot(firstSnapshot)
517517
case .xcode:
518-
throw SwiftlyError(message: "xcode toolchains are not available from swift.org")
518+
return .xcode
519519
}
520520
}
521521
}

0 commit comments

Comments
 (0)