Skip to content

Commit 5d7314a

Browse files
authored
Bump SwiftPM's minimum deployment target to macOS 12 (#6138)
It is time that we update our minimum deployment target, we haven't officially supported anything pre-12.0 since the 5.6 release.
1 parent d2feec4 commit 5d7314a

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ packageCollectionsSigningTargets.append(
107107
let package = Package(
108108
name: "SwiftPM",
109109
platforms: [
110-
.macOS("10.15.4"),
111-
.iOS("13.4")
110+
.macOS("12.0"),
111+
.iOS("15.0")
112112
],
113113
products:
114114
autoProducts.flatMap {

Sources/Basics/Netrc.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import Foundation
1414
import TSCBasic
1515

1616
/// Representation of Netrc configuration
17-
@available (macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
1817
public struct Netrc {
1918
/// Representation of `machine` connection settings & `default` connection settings.
2019
/// If `default` connection settings present, they will be last element.
@@ -140,7 +139,6 @@ public enum NetrcError: Error, Equatable {
140139
case invalidDefaultMachinePosition
141140
}
142141

143-
@available (macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
144142
fileprivate enum RegexUtil {
145143
@frozen fileprivate enum Token: String, CaseIterable {
146144
case machine, login, password, account, macdef, `default`

Sources/Workspace/Workspace.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,6 @@ extension Workspace {
12061206
}
12071207

12081208
/// Loads and returns manifests at the given paths.
1209-
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
12101209
public func loadRootManifests(packages: [AbsolutePath], observabilityScope: ObservabilityScope) async throws -> [AbsolutePath: Manifest] {
12111210
return try await withCheckedThrowingContinuation{ continuation in
12121211
self.loadRootManifests(packages: packages, observabilityScope: observabilityScope) { result in
@@ -1257,7 +1256,6 @@ extension Workspace {
12571256
}
12581257

12591258
/// Loads and returns manifest at the given path.
1260-
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
12611259
public func loadRootManifest(at path: AbsolutePath, observabilityScope: ObservabilityScope) async throws -> Manifest {
12621260
return try await withCheckedThrowingContinuation{ continuation in
12631261
self.loadRootManifest(at: path, observabilityScope: observabilityScope) { result in
@@ -1288,7 +1286,6 @@ extension Workspace {
12881286
}
12891287

12901288
/// Loads root package
1291-
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
12921289
public func loadRootPackage(at path: AbsolutePath, observabilityScope: ObservabilityScope) async throws -> Package {
12931290
return try await withCheckedThrowingContinuation{ continuation in
12941291
self.loadRootPackage(at: path, observabilityScope: observabilityScope) { result in

Tests/BasicsTests/NetrcTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import XCTest
1515

1616
/// Netrc feature depends upon `NSTextCheckingResult.range(withName name: String) -> NSRange`,
1717
/// which is only available in macOS 10.13+ at this time.
18-
@available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *)
1918
class NetrcTests: XCTestCase {
2019
/// should load machines for a given inline format
2120
func testLoadMachinesInline() throws {

Utilities/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import shutil
2424
import subprocess
2525
from helpers import note, error, symlink_force, mkdir_p, call, call_output
2626

27-
g_macos_deployment_target = '10.15'
27+
g_macos_deployment_target = '12.0'
2828

2929
g_shared_lib_prefix = "lib"
3030
if platform.system() == 'Darwin':

0 commit comments

Comments
 (0)