Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .swiftpm/xcode/xcshareddata/xcschemes/xcodes.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "runtimes"
isEnabled = "NO">
argument = "runtimes install &quot;visionOS 1.0-beta1&quot;"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "install --help"
isEnabled = "YES">
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "update"
Expand Down
5 changes: 5 additions & 0 deletions Sources/XcodesKit/Models+Runtimes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ extension DownloadableRuntime {
case macOS = "com.apple.platform.macosx"
case watchOS = "com.apple.platform.watchos"
case tvOS = "com.apple.platform.appletvos"
case visionOS = "com.apple.platform.xros"

var order: Int {
switch self {
case .iOS: return 1
case .macOS: return 2
case .watchOS: return 3
case .tvOS: return 4
case .visionOS: return 5
}
}

Expand All @@ -102,6 +104,7 @@ extension DownloadableRuntime {
case .macOS: return "macOS"
case .watchOS: return "watchOS"
case .tvOS: return "tvOS"
case .visionOS: return "visionOS"
}
}
}
Expand Down Expand Up @@ -134,12 +137,14 @@ extension InstalledRuntime {
case tvOS = "com.apple.platform.appletvsimulator"
case iOS = "com.apple.platform.iphonesimulator"
case watchOS = "com.apple.platform.watchsimulator"
case visionOS = "com.apple.platform.visionsimulator"

var asPlatformOS: DownloadableRuntime.Platform {
switch self {
case .watchOS: return .watchOS
case .iOS: return .iOS
case .tvOS: return .tvOS
case .visionOS: return .visionOS
}
}
}
Expand Down
Loading