A New Project
In Xcode, click File → New → Project... (Figure 15.1).
Figure 15.1 Creating a new project instead of a playground
Next, you will select a project template (Figure 15.2). A template formats your project with a number of presets and configurations common to a given style of application. Along the top of the window, notice that there are several options: Multiplatform, iOS, macOS, watchOS, tvOS, and Other. Select macOS. Next, in the Application area of the window, choose the Command Line Tool template and click Next. This template will create a very basic project.
Figure 15.2 Choosing a template