From 905fb34a76b5f92e26b9059f4d86e40cf76beaf7 Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Tue, 22 Oct 2024 17:03:31 +0100 Subject: [PATCH] require iOS 15 (which is what TSC does...) --- 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(