Skip to content

Commit

Permalink
Updated some error descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKiazyk committed Oct 30, 2024
1 parent ec44af8 commit d0b01bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/XcodesKit/RuntimeInstaller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public class RuntimeInstaller {
@MainActor
public func downloadOrUseExistingArchive(runtime: DownloadableRuntime, to destinationDirectory: Path, downloader: Downloader) async throws -> URL {
guard let source = runtime.source else {
throw Error.missingRuntimeSource(runtime.identifier)
throw Error.missingRuntimeSource(runtime.visibleIdentifier)
}
let url = URL(string: source)!
let destination = destinationDirectory/url.lastPathComponent
Expand Down Expand Up @@ -364,7 +364,7 @@ extension RuntimeInstaller {
case .rootNeeded:
return "Must be run as root to install the specified runtime"
case let .missingRuntimeSource(identifier):
return "Runtime \(identifier) is missing source url. Downloading of iOS 18 runtimes are only supported using Xcode 16.1+ and can only be installed, not just downloaded."
return "Downloading runtime \(identifier) is not supported at this time. Please use `xcodes runtimes install \"\(identifier)\"` instead."
case let .xcode16_1OrGreaterRequired(version):
return "Installing this runtime requires Xcode 16.1 or greater to be selected, but is currently \(version.description)"
case .noXcodeSelectedFound:
Expand Down

0 comments on commit d0b01bc

Please sign in to comment.