Skip to content

Commit 1c7172b

Browse files
authored
Fix iOS 11 support warnings (#242)
Xcode 14 - Warnings related to iOS 11 support (Swift Package Manager)
1 parent c373701 commit 1c7172b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Package.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33

44
import PackageDescription
55

6+
#if swift(>=5.7)
7+
let platforms: [PackageDescription.SupportedPlatform] = [.macOS(.v10_13), .iOS(.v11), .watchOS(.v4), .tvOS(.v11)]
8+
#elseif swift(>=5.0)
9+
let platforms: [PackageDescription.SupportedPlatform]? = nil
10+
#endif
11+
612
let package = Package(
713
name: "XMLCoder",
14+
platforms: platforms,
815
products: [
916
// Products define the executables and libraries produced by a package, and make them visible to other packages.
1017
.library(

0 commit comments

Comments
 (0)