Skip to content

Commit 95c2058

Browse files
committed
Add support for visionOS
Except for SPM, which requires Swift 5.9, and Cocoapods, which requires me having Apple Silicon computer in order to publish a pod with this target. In addition we don't do any CI testing on visionOS simulators, since it seems to be a bit excessive.
1 parent fe273db commit 95c2058

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Package.swift

+3-1
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(

SWCompression.podspec

+1
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

SWCompression.xcodeproj/project.pbxproj

+4-2
Original file line numberDiff line numberDiff line change
@@ -1584,12 +1584,13 @@
15841584
BitByteData,
15851585
);
15861586
SDKROOT = macosx;
1587-
SUPPORTED_PLATFORMS = "macosx watchsimulator iphonesimulator appletvsimulator watchos appletvos iphoneos";
1587+
SUPPORTED_PLATFORMS = "macosx watchsimulator iphonesimulator appletvsimulator watchos appletvos iphoneos xrsimulator xros";
15881588
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
15891589
SWIFT_VERSION = 5.0;
15901590
TVOS_DEPLOYMENT_TARGET = 11.0;
15911591
VERSIONING_SYSTEM = "apple-generic";
15921592
WATCHOS_DEPLOYMENT_TARGET = 4.0;
1593+
XROS_DEPLOYMENT_TARGET = 1.0;
15931594
};
15941595
name = Debug;
15951596
};
@@ -1667,12 +1668,13 @@
16671668
BitByteData,
16681669
);
16691670
SDKROOT = macosx;
1670-
SUPPORTED_PLATFORMS = "macosx watchsimulator iphonesimulator appletvsimulator watchos appletvos iphoneos";
1671+
SUPPORTED_PLATFORMS = "macosx watchsimulator iphonesimulator appletvsimulator watchos appletvos iphoneos xrsimulator xros";
16711672
SWIFT_COMPILATION_MODE = wholemodule;
16721673
SWIFT_VERSION = 5.0;
16731674
TVOS_DEPLOYMENT_TARGET = 11.0;
16741675
VERSIONING_SYSTEM = "apple-generic";
16751676
WATCHOS_DEPLOYMENT_TARGET = 4.0;
1677+
XROS_DEPLOYMENT_TARGET = 1.0;
16761678
};
16771679
name = Release;
16781680
};

0 commit comments

Comments
 (0)