From ae63e39cad1cf4193fed3382122f8b64d6d0317b Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Tue, 22 Oct 2024 17:03:31 +0100 Subject: [PATCH] iOS 13 is aligned with macOS 10.15 --- Package.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index b12ac48..3102e94 100644 --- a/Package.swift +++ b/Package.swift @@ -3,16 +3,23 @@ import PackageDescription import class Foundation.ProcessInfo let macOSPlatform: SupportedPlatform +let iOSPlatform: SupportedPlatform if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTTSC_MACOS_DEPLOYMENT_TARGET"] { macOSPlatform = .macOS(deploymentTarget) } else { macOSPlatform = .macOS(.v10_15) } +if let deploymentTarget = ProcessInfo.processInfo.environment["SWIFTTSC_IOS_DEPLOYMENT_TARGET"] { + iOSPlatform = .iOS(deploymentTarget) +} else { + iOSPlatform = .iOS(.v13) +} let package = Package( name: "swift-tools-support-async", platforms: [ - macOSPlatform + macOSPlatform, + iOSPlatform ], products: [ .library(