Skip to content

Commit fe98e73

Browse files
authored
Merge pull request #300 from XcodesOrg/matt/xrOSRuntimeSupport
feat: add support for VisionOS download
2 parents 6835cde + bca393b commit fe98e73

File tree

6 files changed

+788
-174
lines changed

6 files changed

+788
-174
lines changed

.swiftpm/xcode/xcshareddata/xcschemes/xcodes.xcscheme

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@
128128
isEnabled = "NO">
129129
</CommandLineArgument>
130130
<CommandLineArgument
131-
argument = "runtimes"
132-
isEnabled = "NO">
131+
argument = "runtimes install &quot;visionOS 1.0-beta1&quot;"
132+
isEnabled = "YES">
133133
</CommandLineArgument>
134134
<CommandLineArgument
135135
argument = "install --help"
136-
isEnabled = "YES">
136+
isEnabled = "NO">
137137
</CommandLineArgument>
138138
<CommandLineArgument
139139
argument = "update"

Sources/XcodesKit/Models+Runtimes.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ extension DownloadableRuntime {
8686
case macOS = "com.apple.platform.macosx"
8787
case watchOS = "com.apple.platform.watchos"
8888
case tvOS = "com.apple.platform.appletvos"
89+
case visionOS = "com.apple.platform.xros"
8990

9091
var order: Int {
9192
switch self {
9293
case .iOS: return 1
9394
case .macOS: return 2
9495
case .watchOS: return 3
9596
case .tvOS: return 4
97+
case .visionOS: return 5
9698
}
9799
}
98100

@@ -102,6 +104,7 @@ extension DownloadableRuntime {
102104
case .macOS: return "macOS"
103105
case .watchOS: return "watchOS"
104106
case .tvOS: return "tvOS"
107+
case .visionOS: return "visionOS"
105108
}
106109
}
107110
}
@@ -134,12 +137,14 @@ extension InstalledRuntime {
134137
case tvOS = "com.apple.platform.appletvsimulator"
135138
case iOS = "com.apple.platform.iphonesimulator"
136139
case watchOS = "com.apple.platform.watchsimulator"
140+
case visionOS = "com.apple.platform.visionsimulator"
137141

138142
var asPlatformOS: DownloadableRuntime.Platform {
139143
switch self {
140144
case .watchOS: return .watchOS
141145
case .iOS: return .iOS
142146
case .tvOS: return .tvOS
147+
case .visionOS: return .visionOS
143148
}
144149
}
145150
}

0 commit comments

Comments
 (0)