Skip to content

Commit

Permalink
Add visionOS support. Fixes #1415
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Apr 16, 2024
1 parent d94783b commit 5e9c12d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Configs/Module-Shared.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ SDKROOT = macosx
SKIP_INSTALL = YES

// The list of supported platforms from which a base SDK can be used. This setting is used if the product can be built for multiple platforms using different SDKs.
SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator watchsimulator watchos appletvsimulator appletvos
SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator watchsimulator watchos appletvsimulator appletvos xros xrsimulator

// macOS Catalyst support
SUPPORTS_MACCATALYST = YES
Expand All @@ -249,13 +249,16 @@ SUPPORTS_MACCATALYST = YES
SWIFT_VERSION = 5.0

// The build system uses the selected device to set the correct value for the `UIDeviceFamily` key it adds to the target's `Info.plist` file. This also drives the --target-device flag to actool, which determines the idioms selected during catalog compilation for iOS platforms.
TARGETED_DEVICE_FAMILY = 1,2,3,4
TARGETED_DEVICE_FAMILY = 1,2,3,4,7

// Code will load on this and later versions of tvOS. Framework APIs that are unavailable in earlier versions will be weak-linked; your code should check for null function pointers or specific system versions before calling newer APIs.
TVOS_DEPLOYMENT_TARGET = 12.0

// Selects the process used for version-stamping generated files. * *None:* Use no versioning system. * *Apple Generic:* Use the current project version setting. [apple-generic]
VERSIONING_SYSTEM = apple-generic

// Code will load on this and later versions of visionOS. Framework APIs that are unavailable in earlier versions will be weak-linked; your code should check for null function pointers or specific system versions before calling newer APIs.
VISIONOS_DEPLOYMENT_TARGET = 1.0

// Code will load on this and later versions of watchOS. Framework APIs that are unavailable in earlier versions will be weak-linked; your code should check for null function pointers or specific system versions before calling newer APIs.
WATCHOS_DEPLOYMENT_TARGET = 5.0
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ let package = Package(
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v5),
.visionOS(.v1),
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
Expand Down
1 change: 1 addition & 0 deletions Package@swift-5.9.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ let package = Package(
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v5),
.visionOS(.v1),
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
Expand Down

0 comments on commit 5e9c12d

Please sign in to comment.