Xcode is a powerful Integrated Development Environment (or IDE) created by Apple for developers. Xcode is used to build native mobile applications for iOS devices. You will be using Xcode exclusively for writing source code and debugging your apps. Xcode comes bundled with a number of applications including:
- Source code editor, compiler and debugger - Used to write and test code
- Interface Builder - Used to build visual interfaces for your users
- iPhone and iPad Simulator - Used to run your apps easily and quickly without the need to connect your device.
The latest version of Xcode is Xcode 6 and can be downloaded by visiting the following link:
Overview of Xcode
Below is a labeled diagram describing Xcode - its panes, toolbars and general layout. Since you will be using Xcode on a regular basis, it is important to know where the buttons, views and toolbars are located. In the below diagram, Xcode is currently debugging an iPhone app:
- Build Controls - Runs and stops the current build
- Active Scheme, Device - Selectable list of schemes and available simulator and connected devices to run the build.
- Project Status - Current status of the project including active errors and warning counts.
- Window Pane Controls - Configures Xcode window panes into a variety of options.
- Navigator Tab Bar - Optional states for the navigator tab bar such as symbols, search and breakpoint list.
- Project Navigator - List of files contained in your project or workspace.
- Quick Controls - Contains a filter for the above Project Navigator and a quick add files button ("+")
- Gutter - Can contain line numbers associated with your source code and active, non-active breakpoints.
- Source Code - Editor for source code
- Run Control - Options for debug including toggling breakpoints, step controls and run and pause.
- Memory Snapshot - During debug, shows active, recently changed memory in a read-only format.
- Console - During debug, provides NSLog output as well as the ability to input commands directly to the debugger.
- Library - UI Library available for Interface Builder.
- Utility Pane - Configuration and utility functions available per file or control within Interface Builder.
[Video] - What's New in Xcode (WWDC 2014)
Each iteration of Xcode, Apple releases an informative video describing new and important features of their IDE. The following video will walk you through these features.
Now that we have an overview of Xcode, our next chapter will discuss Interface Builder.
Xcode Overview -
Xcode: Learn More -