Setup

This quick start requires:

Install the Latest Version of Xcode

Xcode, Apple’s integrated development environment (IDE), is the primary tool for developing your app. It includes a source editor, a graphical user interface editor, and many other features. Xcode simplifies the provisioning and code signing process so that you don’t need to leave Xcode to develop your app. Later in the distribution process, you’ll use Xcode and other tools to distribute your app for beta testing and to the store.

To install the latest version of Xcode, go to the Mac App Store.

Create an Xcode Project

If you don’t have an Xcode project that builds and runs without errors, you can create a simple app now just to learn the code signing and provisioning steps in this document.

To create an Xcode project

  1. Open Xcode.

  2. Choose File > New > Project, or click “Create a new Xcode project” in the “Welcome to Xcode” window.

  3. In the iOS or OS X section, select Application, select a template from the list of templates, and click Next.

    For example, to create an app with a single empty window, for iOS apps select Single View Application, and for Mac apps select Cocoa Application.

    ../Art/1_singleviewapp_2x.png
  4. In the dialog that appears, fill in the Product Name and Company Identifier text fields.

    The company identifier should be in reverse DNS format. If you don’t have a company identifier, use com.example. followed by your name, and replace it later. The other default values in this dialog should suffice for now. The following screenshot shows options for creating an iOS app. The Mac app options are similar, but not identical.

    ../Art/1_chooseoptions_2x.png
  5. From the Language pop-up menu, choose a programming language .

  6. Click Next.

    A dialog asks you where to save your project.

  7. Specify a location for your project, optionally deselect “Create git repository on,” and click Create.

    For iOS apps, a new project window appears, similar to the one below.

    ../Art/1_newproject_2x.png

Enroll in a Developer Program

If you plan to submit your app to the store, you first need to join the iOS Developer Program or Mac Developer Program. After you join the iOS Developer Program, you can start running your iOS app on devices. For Mac apps, you can start using app services.

To enroll in either of these programs, go to the Apple Developer Program Enrollment website and follow the instructions.