One of the benefits of using Swift as a language to build both server-side components and frontend native apps is the ability to use one integrated development environment (IDE) to work on both server and frontend apps. Xcode, which is a powerful IDE for iOS development, can also be used for building server-side applications using Swift and the Swift Package manager. In Chapter 4, Configuring Providers, Fluent, and Databases, we started working on our Vapor application, and we used Xcode to run and debug our application instead of a plain text editor. We can use the same Xcode IDE to combine both the iOS project and the Vapor project into one Workspace so that we can run both the iOS app and the Vapor app using the same Xcode window, instead of having to toggle between two separate Xcode windows.
We can do this using a feature in Xcode called Workspace. Workspace...