Apple developed the Xcode as a tool for creating software applications on the Mac OS X. Although it is included in the Mac OS X installer, it does not install automatically unless you specify it. Xcode contains all the tools to develop applications, debug them and optimize the applications. Xcode integrates a text editor, build system, debugger, and a GCC compiler. Applications for the iPhone are also done in Xcode’s development environment. You can program the “Hello World” text to explore Xcodes tools.

  1. Launch Software Development Kit/Xcode. You must have the iPhone SDK/Xcode downloaded and installed on your computer. If you already have it on your computer, then launch the program and navigate to the File menu once it is open. Under the File menu go to the New Project option and select it. A window will appear, locate the iPhone OS area which can be found on the left side of the panel and click Applications. Templates will show up on the right side of the panel so choose the View Based Application then select the Choose button. Save a name for the project file which will also name the application.
  2. Work with .xib files. Select and click the MainWindow.xib file then a replica of the iPhone OS view will be displayed. Go to the Tools on the menu bar then click Library. We need to have the library open because it contains everything needed to make iPhone applications. At Library window select the Objects option and then under this option select Library. You will now locate the Text View option, to do this type the word text in the search window, two results will appear, select the one named Text View. Drag the Text View to the Hello World View Controller panel, double click it, this will make it editable. Edit the text to say Hello World. Save your work in the interface builder, this will save it with .xib file extension. When you close the interface builder you will notice that the Xcode remains open.
  3. Execute the Hello World application. Locate the Build and Go option on the Xcode application and select it. The Build and Go option compiles the .xib file you created along with the source code and will execute it in the iPhone simulator and display the words 'Hello World'.

Xcode gives programmers and software developers the necessary tools and library to create applications for the iPhone. This simple project gives you an insight on how applications can be developed in Xcode.

Quick Tips:
You have to learn to program with Objective-C or Cocoa to create applications for the iPhone.
Average rating: