Skip to content

Commit d0b01bc

Browse files
committed
Updated some error descriptions
1 parent ec44af8 commit d0b01bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/XcodesKit/RuntimeInstaller.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public class RuntimeInstaller {
188188
@MainActor
189189
public func downloadOrUseExistingArchive(runtime: DownloadableRuntime, to destinationDirectory: Path, downloader: Downloader) async throws -> URL {
190190
guard let source = runtime.source else {
191-
throw Error.missingRuntimeSource(runtime.identifier)
191+
throw Error.missingRuntimeSource(runtime.visibleIdentifier)
192192
}
193193
let url = URL(string: source)!
194194
let destination = destinationDirectory/url.lastPathComponent
@@ -364,7 +364,7 @@ extension RuntimeInstaller {
364364
case .rootNeeded:
365365
return "Must be run as root to install the specified runtime"
366366
case let .missingRuntimeSource(identifier):
367-
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."
367+
return "Downloading runtime \(identifier) is not supported at this time. Please use `xcodes runtimes install \"\(identifier)\"` instead."
368368
case let .xcode16_1OrGreaterRequired(version):
369369
return "Installing this runtime requires Xcode 16.1 or greater to be selected, but is currently \(version.description)"
370370
case .noXcodeSelectedFound:

0 commit comments

Comments
 (0)