Build Phases

Build Settings are great and all, but they don’t actually do anything in and of themselves. The next tab over, Build Phases, is where the action takes place. This tab describes each step of the build process in order.

Depending on what type of project you created, several phases will already be present. For an iOS or Mac app, there are default build phases to do the following:

  • Build any dependencies first, which are other targets in the project that need to be built before this one.

  • Compile your source files into executable code.

  • Link your executables with system libraries.

  • Copy resource files, like storyboards, asset catalogs, other kinds of media, and so on.

You can expand a phase with the disclosure triangle on the left. Each ...

Get Xcode Treasures 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.