From 24f5a6047065d8604ad53fade89e0cfc6057845d Mon Sep 17 00:00:00 2001 From: Enrique Garcia Date: Sun, 10 Jul 2022 01:02:18 +0200 Subject: [PATCH] Xcode 14 - Warnings related to iOS 11 support (Swift Package Manager) --- Package.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Package.swift b/Package.swift index 7a41a339..31397876 100644 --- a/Package.swift +++ b/Package.swift @@ -3,8 +3,15 @@ import PackageDescription +#if swift(>=5.7) +let platforms: [PackageDescription.SupportedPlatform] = [.macOS(.v10_13), .iOS(.v11), .watchOS(.v4), .tvOS(.v11)] +#elseif swift(>=5.0) +let platforms: [PackageDescription.SupportedPlatform]? = nil +#endif + let package = Package( name: "XMLCoder", + platforms: platforms, products: [ // Products define the executables and libraries produced by a package, and make them visible to other packages. .library(