Information Technology Reference
In-Depth Information
Setting Profile action options
The Profile action options are very similar to the Run process options. In fact, for the Arguments list, you can
check the Use the Run action's options box to copy the arguments and environment variables from the Run ac-
tion's settings.
The significant feature here is the Instrument option. You can use this to launch a default instrument automatic-
ally. This saves you having to select an instrument by hand.
CROSS-REFERENCE
For more about instruments and profiling, see Chapter 16.
Setting Archive process options
App Store and Ad Hoc distribution builds are described in detail later in this chapter. But as a preview, you typ-
ically either edit the standard Release configuration or make a copy. A key fact to remember is that if you create
a copy for a distribution build, you must select the copy for the Archive action. Otherwise, the Archive action
defaults to the standard Release configuration, which is likely to have incorrect settings.
Working with the Build action
The Build action has been left until last because it has some unusual features and a unique edit page.
Selecting common scripts
You can add pre-action and post-action scripts in the usual way. Because Build is the master action and is in-
cluded automatically in the other actions, any scripts you add here are run by every action.
Selecting targets for each action
The editor also defines which targets are built by the other standard actions. The design of this editor isn't out-
standingly intuitive, so it's worth taking the time to understand how to use it effectively.
As shown in Figure 12.15, targets are listed vertically at the left and the standard build actions are listed across
the top. When you check a box under an action, it tells Xcode to build that target when you run that action.
FIGURE 12.15
Selecting the targets built by each action
Search WWH ::




Custom Search