About the Transition to Xcode 4

Xcode 4 is the latest iteration of Apple’s integrated development environment (IDE). This document is intended for developers who are familiar with Xcode 3 and want to get started quickly using Xcode 4. If you want a short tutorial that introduces you to the major features of Xcode 4, see Xcode Quick Start Guide. If you want a more complete introduction to the features and workflows of Xcode 4, see Xcode Overview.

Figure I-1 shows the main user interface elements described in this document.

Figure I-1  The Xcode 4 workspace window

Xcode 4 uses one type of main window, called the workspace window, to hold most of the data you need. You can have as many workspace windows open as you need. A second window, called the Organizer window, is used for organizing your projects and reading documentation. For iOS projects, the Organizer window is also used for managing devices.

At a Glance

There are many improvements and new features in Xcode 4. A very partial list includes:

Use Xcode 4 for Development on Recent OS Versions

Xcode 4 runs on the current release of OS X and comes with current releases of OS X and iOS software development kits (SDKs).

Open Your Project in Xcode 4

You can start a new project or open your Xcode 3 project in Xcode 4. Following this introduction, the first couple of chapters help you get started.

Relevant Chapters: Using an Existing Xcode 3 Project, Creating a New Xcode 4 Project.

Get Oriented to Xcode’s Organization and Features

Xcode 4 is fundamentally different than Xcode 3, so whether you’re new to Apple platforms or an experienced Apple developer, you should read the next chapter to learn about Xcode 4.

Relevant Chapter: Orientation to Xcode 4.

Learn How to Use Xcode 4 to Design a User Interface

One of the most obvious differences between Xcode 3 and Xcode 4 is that Interface Builder is now fully integrated into the Xcode application. The chapter on the Interface Builder highlights the advantages that ensue from this change.

Relevant Chapter: Designing User Interfaces in Xcode 4.

Debug and Refine Your Code In Xcode 4

Xcode 4 provides a consistent interface for debugging regardless of which supported debugger you use.

Relevant Chapters: Orientation to Xcode 4, Debugging and Analyzing Your Code, Replacing Text and Refactoring.

Back Up Your Code and Use Source Control

Xcode provides easy backups with snapshots and provides access to the most commonly used features of source control repositories.

Relevant Chapter: Repositories, Snapshots, and Archives.

Use Archives to Distribute Your Program

When you’re ready to share your program with others, create an archive to distribute or to submit to iTunes Connect.

Relevant Chapter: Repositories, Snapshots, and Archives.