To develop iOS applications, you need a computer installed with Xcode and Mac OS X. Xcode is a development tool set provided by Apple. It provides functions such as project management, code editing, execution Program Creation, code-level debugging, code library management, and performance adjustment. The core of this tool set is the Xcode Program, which provides a basic source code development environment. However, Xcode is not the only tool you use. The following section describes the tools required to create an iPhone application.
Xcode
The focus of your development experience is the Xcode program. Xcode is an integrated development environment (IDE) that provides all the tools that allow you to create and manage your iPhone project and source code and build your code into executable files, run and debug your code on an iPhone simulator or a real device.
Create a new iPhone application, starting from creating a new project in Xcode. A project manages all information related to your program, including source code, build settings, and rules that need to be put together. The core of each Xcode project is the project window, as shown in figure 1. This window provides a way to quickly access all key elements of your program. The file and File Group lists are the places where you manage files in your project, including your source code files and Build targets created from these source code files. The toolbar provides access to common tools and commands. The Detail Panel provides a configurable space for your project's work. Other parts of the project window provide additional project information.
Figure 1 Xcode project window
Xcode contains an advanced text editor that supports many features, such as code completion, syntax highlighting, code folding, and in-line error warning prompts. The Xcode build system provides default settings and allows you to set the environment as needed. If you need documents, the research assistant can provide documents related to the content. The Xcode document window allows you to browse and search for information.
When you build an application in Xcode, you can choose to create an iPhone simulator or an iPhone device. The simulator provides a local environment for testing applications and ensures that your program behavior fully meets your needs. When you are satisfied with the basic behavior of the program, you can tell Xcode to build it and then run it on the iPhone and iPod touch connected to your computer. Running a program on the device provides the ultimate test environment, and Xcode can implant the built-in debugger into the code running on the device.
Figure 2 run the project from Xcode