Create an Xcode project

When you create an Xcode project, you first choose a template for a common style of app or framework, then modify the project as you like. Xcode templates include essential project configuration and files that help you start developing your app quickly.

  1. Launch Xcode, and in the “Welcome to Xcode” window, click “Create a new Xcode project.”

    Alternatively, choose File > New > Project.

  2. In the sheet that appears, select the target OS.

  3. Under Application, select a template, then click Next.

    For example, to create an app with a single empty window, for iOS apps, select Single View App; for macOS apps, select Cocoa App.

  4. In the sheet that appears, fill in the text fields and choose options from the pop-up menus to configure your project.

    You must enter a product name and organization identifier to continue to the next sheet. You should also enter an organization name (if you don’t belong to an organization, enter your name). The following screenshot shows options for creating an iOS app.

  5. From the Team pop-up menu, choose your team.

    To add an account, click the “Add account” button if it appears. Optionally, skip this step and assign a team to your project later.

  6. From the Language pop-up menu, choose a programming language.

  7. To add test targets to your project, select Include Unit Tests and Include UI Tests.

  8. Click Next.

    A sheet asks you where to save your project.

  9. Specify a location for the project, optionally select “Create Git repository on my Mac” to use source control (recommended), then click Create.

    The main window for your project appears, similar to the iOS app main window below.

Next Step: Run your app on a simulated or real device.