Building Targets in the Correct Order
- Steps
In the project editor, select the target to which you want to add a dependency.
Click Build Phases at the top of the project editor.
Open the Target Dependencies section.
Click the Add (+) button to add a target dependency.
Select a target from the list and click Add.

Ensure that targets are built in the proper order using target dependencies. In a complex project, you may have several targets that create related products. Frequently, these targets need to be built in a specific order.
For example, a project for a client-server software package may contain targets that create a client application, a server application, tools that provide command-line interfaces to the client and server, and a private framework that all the other targets use. For the project to build correctly, the private framework needs to be built before the other targets—that is, the other targets have a dependency on the private framework.
The video illustrates adding a private framework to the client application target’s dependency list.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-01-09)