Skip to content

Commit d3afe33

Browse files
authored
Require macOS 10.15 and iOS 13 or later on Darwin (#3557)
Simplify the deployment targets on Darwin platforms, setting the minimum deployment target to macOS 10.15 and iOS 13 or later on Darwin platforms. The environment variables were needed during a transitional phase. Note that non-Darwin platforms are unaffected.
1 parent 75de97b commit d3afe33

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Package.swift

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@
1313
import PackageDescription
1414
import class Foundation.ProcessInfo
1515

16-
// We default to a 10.10 minimum deployment target for clients of libSwiftPM,
17-
// but allow overriding it when building for a toolchain.
18-
19-
let macOSPlatform: SupportedPlatform
20-
if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTPM_MACOS_DEPLOYMENT_TARGET"] {
21-
macOSPlatform = .macOS(deploymentTarget)
22-
} else {
23-
macOSPlatform = .macOS(.v10_15)
24-
}
2516

2617
/** SwiftPMDataModel is the subset of SwiftPM product that includes just its data model.
2718
This allowis some clients (such as IDEs) that use SwiftPM's data model but not its build system
@@ -64,7 +55,10 @@ let autoProducts = [swiftPMProduct, swiftPMDataModelProduct]
6455

6556
let package = Package(
6657
name: "SwiftPM",
67-
platforms: [macOSPlatform],
58+
platforms: [
59+
.macOS(.v10_15),
60+
.iOS(.v13)
61+
],
6862
products:
6963
autoProducts.flatMap {
7064
[

0 commit comments

Comments
 (0)