Minimum platform version

I am trying to run the HelloVapor package as described in Chapter 2 on Xcode Version 15.0.1 (15A507). AppTests and HelloVapor throw three identical errors: “The package product ‘Vapor’ requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0”
How do I resolve this?

You probably want to change the build destination to “My Mac” and build it for macOS rather than iOS

Thank you very much for responding so quickly.

I built on “My Mac” and it works fine.

I am chapter 2; will it work on iOS in later sessions, for example, when the Vapor package is part of an app?

Best,
Peter

Yes you can add Vapor to an iOS app if you want to run a server in an iOS application. This isn’t covered in the book because it’s a little niche but there’s a tutorial on it here Running a Web Server on iOS with Vapor | Kodeco