Skip to content

Commit c98ebfa

Browse files
committed
Add support for visionOS
Except for SPM, which requires Swift 5.9. In addition we don't do any CI testing on visionOS simulators, since it seems to be a bit excessive.
1 parent 6649ff9 commit c98ebfa

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

BitByteData.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Pod::Spec.new do |s|
1919
s.osx.deployment_target = "10.13"
2020
s.tvos.deployment_target = "11.0"
2121
s.watchos.deployment_target = "4.0"
22+
s.visionos.deployment_target = "1.0"
2223

2324
s.swift_versions = ["5"]
2425

BitByteData.xcodeproj/project.pbxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,13 @@
428428
ONLY_ACTIVE_ARCH = YES;
429429
OTHER_CODE_SIGN_FLAGS = "--deep";
430430
SDKROOT = macosx;
431-
SUPPORTED_PLATFORMS = "macosx watchsimulator iphonesimulator appletvsimulator watchos appletvos iphoneos";
431+
SUPPORTED_PLATFORMS = "macosx watchsimulator iphonesimulator appletvsimulator watchos appletvos iphoneos xrsimulator xros";
432432
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
433433
SWIFT_VERSION = 5.0;
434434
TVOS_DEPLOYMENT_TARGET = 11.0;
435435
VERSIONING_SYSTEM = "apple-generic";
436436
WATCHOS_DEPLOYMENT_TARGET = 4.0;
437+
XROS_DEPLOYMENT_TARGET = 1.0;
437438
};
438439
name = Debug;
439440
};
@@ -478,12 +479,13 @@
478479
MACOSX_DEPLOYMENT_TARGET = 10.13;
479480
OTHER_CODE_SIGN_FLAGS = "--deep";
480481
SDKROOT = macosx;
481-
SUPPORTED_PLATFORMS = "macosx watchsimulator iphonesimulator appletvsimulator watchos appletvos iphoneos";
482+
SUPPORTED_PLATFORMS = "macosx watchsimulator iphonesimulator appletvsimulator watchos appletvos iphoneos xrsimulator xros";
482483
SWIFT_COMPILATION_MODE = wholemodule;
483484
SWIFT_VERSION = 5.0;
484485
TVOS_DEPLOYMENT_TARGET = 11.0;
485486
VERSIONING_SYSTEM = "apple-generic";
486487
WATCHOS_DEPLOYMENT_TARGET = 4.0;
488+
XROS_DEPLOYMENT_TARGET = 1.0;
487489
};
488490
name = Release;
489491
};

Package.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ let package = Package(
77
.macOS(.v10_13),
88
.iOS(.v11),
99
.tvOS(.v11),
10-
.watchOS(.v4)
10+
.watchOS(.v4),
11+
// TODO: Enable after upgrading to Swift 5.9.
12+
// .visionOS(.v1)
1113
],
1214
products: [
1315
.library(

0 commit comments

Comments
 (0)