How to Verify the Development Environment for Xcode

By Rajiv Ramnath

After Xcode is installed, it’s time to check that it’s properly set up and working correctly. However, it’s a good idea to make sure that everything is in good working condition before proceeding further.

To make sure Xcode is working properly, follow these steps:

  1. Locate the Xcode 5 application and double-click it.

    When running Xcode for the first time, you’re asked to accept a license agreement.

  2. Accept the license agreement.

    A dialog box asking for your Keychain password appears. This is the standard dialog box that appears on the Mac whenever you try to install software or update a system setting, so you’ve probably seen this dialog box before.

  3. Enter your Keychain password.

    The Welcome to Xcode window appears. Of course, if you’re doing this for the first time, you won’t see any existing projects.

    Allow Xcode access to your Macbook.

  4. Click Create a new Xcode Project.

    The Xcode welcome screen.

    A set of application templates appears.

    These templates are wizards for creating different types of apps.

  5. Double-click Empty Application.

    The Choose Options for Your New Project dialog box appears, where (you guessed it), you’re asked to choose options for your new project. Chose the Test application and provided the Company Identifier as com.rr. Examine the Test the Class Prefix (which means that the names of all the classes used in this application and the names of the files in which they’ll be stored will automatically get the prefix Test).

    Notice that the iPhone is selected in the Devices list. This selection is not significant for verifying that Xcode works. You can select iPad or leave the default selection (Universal) as is.

    The New Project screen in Xcode.

  6. Click Next.

    Choosing the options for a new project in Xcode.

    A Mac OS file save window appears so you can create a folder for your app.

    Saving a project in the computer files.

  7. Select where you want to save the project in the Mac file system.

  8. Click Create (which tells Xcode to save the project in the default directory).

    The workspace for your project appears .

    An empty Xcode workspace for a new project.

  9. To build and run the Test application, select Run from the Product menu.

    The product menu in Xcode.

    If everything is correct (and why wouldn’t it be?), Xcode builds the app, starts the simulator, and installs the app on the simulator. The result of this final step is shown below.

    The Xcode app simulator.

Installations on a Mac almost always work. Apple has well-specified standards for developing and installing applications. Also, Apple manufactures all Macs and can control the quality and compatibility of all components. Once Xcode is installed properly, and you’re all set to start developing iOS apps.