How does one specify a minimum target of iOS(.v17) in a swift package

I'm currently using this definition:

let package = Package(
    name: "MyPackage",
    platforms: [
        .iOS(.v17),
        .macOS(.v14)
    ],

...

But now I'd like the package to use a feature only available in v17.1

Replies

Hello @franco_on_the_moon,

I think you are trying to set the minimum deployment target of your package to iOS 17.1?

If so, you will have to use the String based method to specify the minor version number:

platforms: [.iOS("17.1")],