Skip to content

Commit 241c86f

Browse files
authored
Update Package.swift files (#7039)
This commit updates Package.swift files that were missing the platform specification that indicates that the targets can be built for iOS and macOS. This was preventing the examples from working on these platforms.
1 parent 0783719 commit 241c86f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

swift/example_code/swift-sdk/Waiters/Package.swift

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import PackageDescription
99

1010
let package = Package(
1111
name: "Waiters",
12+
// Let Xcode know the minimum Apple platforms supported.
13+
platforms: [
14+
.macOS(.v11),
15+
.iOS(.v13)
16+
],
1217
dependencies: [
1318
// This project requires the AWS SDK for Swift.
1419
.package(

swift/example_code/swift-sdk/mocking/Package.swift

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import PackageDescription
99

1010
let package = Package(
1111
name: "mocking",
12+
// Let Xcode know the minimum Apple platforms supported.
13+
platforms: [
14+
.macOS(.v11),
15+
.iOS(.v13)
16+
],
1217
dependencies: [
1318
// Dependencies declare other packages that this package depends on.
1419
.package(

swift/modules/SwiftUtilities/Package.swift

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import PackageDescription
77

88
let package = Package(
99
name: "SwiftUtilities",
10+
// Let Xcode know the minimum Apple platforms supported.
11+
platforms: [
12+
.macOS(.v11),
13+
.iOS(.v13)
14+
],
1015
products: [
1116
// Products define the executables and libraries a package produces.
1217
// They also make their own executables and libraries visible to other

0 commit comments

Comments
 (0)