Converting to the Xcode project on a Mac

As explained before, you can optionally take advantage of the powerful editing and debugging features of Xcode if you use macOS. The Vapor Toolbox CLI provides a convenient way for you to generate an Xcode project file from a generic Vapor project.

  1. In the current directory of your Vapor project, run the following Vapor Toolbox CLI command:
# Step 4: Generate Xcode project filesvapor xcode
  1. After a few minutes, Xcode project files will be generated. When you are prompted with the question Open Xcode project?, Press Y to open your project in Xcode:

  1. From the toolbar at the top left corner of Xcode, ...

Get Hands-On Server-Side Web Development with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.