Chapter 14. Building Projects

Building projects is Xcode's ultimate ambition. It might not be yours—you probably want your finished application to run flawlessly. Xcode does provide additional tools for debugging and performance analysis that are covered in subsequent chapters, but the principle objective of Xcode is to faithfully compile and assemble your finished product.

This chapter explains how to choose what you want Xcode to build and how to start and control the build process. This chapter also covers how to set and organize build settings, which are used to customize everything from compiler options to packaging, so your products come out just the way you want them to.

Starting and Stopping a Build

To build your project, choose the Build command (Command+B) from the Build menu. There are also two build commands that perform common combinations of commands. These are the Build

Starting and Stopping a Build

These same commands can be invoked from toolbar buttons, if you find that more convenient. Xcode provides four build buttons for toolbars: Build, Build and Run, Build (menu), and Build and Go (menu). The Build and the Build and Run buttons are the Build

Starting and Stopping a Build

The progress and results of the build are displayed in the build window for the project. See the "Build Results Window" section for all of the details. The ...

Get Beginning Xcode® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.