Showing Recent Issues The package product 'Vapor' requires minimum platform version 13.0 for the iOS platform, but this target supports 11.0

Hello :wave:

I’m using Swift 5.6, Xcode 14, and iOS16. Why might I be getting these migration errors for the Vapor, Fluent, and Swift NIO, packages?

Here are my packages:

let package = Package(
    name: "vapor",
    platforms: [
        .macOS(.v10_15),
        .iOS(.v13),
        .tvOS(.v13),
        .watchOS(.v6)
    ],

Perhaps related: how can I edit package dependency files?

Move the dependency to a local project didn’t work :frowning:

Finally got it working. I needed to go into the files themselves and add the #available if… flags above the structs and/or methods.

I also went to edit schemes and added my folder to the path in lieu of /Library/Xcode/DerivedData/WebService, which is where your project seems to run by default.

I also switched the scheme from iOS to Mac. Not sure what that does.

Your question is a bit confusing… You are posting in the Push Notifications (book) section, but are asking for Vapor (server side swift) and are showing some multi-platform errors. Glad to hear you got it resolved, though.

I’m following the book. The chapter on server-side swift, as you mentioned, does not control for the errors I was getting, as a result of following the tutorial.

Ah! OK, you should be posting in the following section:

This section is for Push Notifications by Tutorials.