Skip to content

Commit 15ba81b

Browse files
authored
Merge pull request #5 from amplitude/add_visionos_support
Add support for visionOS
2 parents d042322 + 979f5e6 commit 15ba81b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Sources/CreateXCFramework/Platforms.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ enum TargetPlatform: String, ExpressibleByArgument, CaseIterable {
1414
case maccatalyst
1515
case tvos
1616
case watchos
17+
case visionos
1718

1819
init?(argument: String) {
1920
self.init(rawValue: argument.lowercased())
@@ -27,6 +28,7 @@ enum TargetPlatform: String, ExpressibleByArgument, CaseIterable {
2728
case .maccatalyst: return "macos"
2829
case .tvos: return "tvos"
2930
case .watchos: return "watchos"
31+
case .visionos: return "visionos"
3032
}
3133
}
3234

@@ -108,6 +110,21 @@ enum TargetPlatform: String, ExpressibleByArgument, CaseIterable {
108110
buildSettings: nil
109111
)
110112
]
113+
case .visionos:
114+
return [
115+
SDK (
116+
destination: "generic/platform=visionOS",
117+
archiveName: "visionos.xcarchive",
118+
releaseFolder: "Release-xros",
119+
buildSettings: nil
120+
),
121+
SDK (
122+
destination: "generic/platform=visionOS Simulator",
123+
archiveName: "visionsimulator.xcarchive",
124+
releaseFolder: "Release-xrsimulator",
125+
buildSettings: nil
126+
)
127+
]
111128
}
112129
}
113130
}

0 commit comments

Comments
 (0)