Skip to content

Commit 5e968d4

Browse files
authored
Require macOS 10.15 and iOS 13 or later on Darwin (#225)
Increase the minimum deployment target to macOS 10.15 and iOS 13 or later. This is required in order to take advantage the APIs required for Netrc support etc. Note that non-Darwin platforms are unaffected.
1 parent a7f0a5e commit 5e968d4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Package.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@
1414
import PackageDescription
1515
import class Foundation.ProcessInfo
1616

17-
let macOSPlatform: SupportedPlatform
18-
if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFT_TOOLCHAIN_MACOS_DEPLOYMENT_TARGET"] {
19-
macOSPlatform = .macOS(deploymentTarget)
20-
} else {
21-
macOSPlatform = .macOS(.v10_10)
22-
}
23-
2417
let package = Package(
2518
name: "swift-tools-support-core",
2619
platforms: [
27-
macOSPlatform,
20+
.macOS(.v10_15),
21+
.iOS(.v13)
2822
],
2923
products: [
3024
.library(

0 commit comments

Comments
 (0)