A New Project

In Xcode, click FileNewProject... (Figure 15.1).

Figure 15.1  Creating a new project instead of a playground

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

Get Swift Programming: The Big Nerd Ranch Guide, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.