How to Verify the Development Environment for Xcode
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:
Locate the Xcode 5 application and double-click it.
When running Xcode for the first time, you’re asked to accept a license agreement.
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.
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.
Click Create a new Xcode Project.
A set of application templates appears.
These templates are wizards for creating different types of apps.
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.
A Mac OS file save window appears so you can create a folder for your app.
Select where you want to save the project in the Mac file system.
Click Create (which tells Xcode to save the project in the default directory).
The workspace for your project appears .
To build and run the Test application, select Run from the Product menu.
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.
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.