Skip to content

Commit 671e717

Browse files
committed
Require macOS 10.15 and iOS 13 or later on Darwin
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 21a7918 commit 671e717

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)