Skip to content

Commit

Permalink
Fix iOS 11 support warnings (#242)
Browse files Browse the repository at this point in the history
Xcode 14 - Warnings related to iOS 11 support (Swift Package Manager)
  • Loading branch information
kikeenrique authored Jul 17, 2022
1 parent c373701 commit 1c7172b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1c7172b

Please sign in to comment.