Information Technology Reference
In-Depth Information
If you select the project icon, you'll see two tabs:
Info: This includes a minimum supported OS version, a list of configurations (selected build setting pre-
sets), and a summary of the files localized for specific languages. In practice, the Localizations option is es-
sential for foreign language support, the Configurations option is useful to App Store build customization,
and the SDK/Deployment/OS option is usually overridden by the target.
Build settings: This is a long list with hundreds of compiler, linker, and deployment options that apply
to the project as a whole. They can be overridden by the equivalent settings for each target.
Understanding the target options
If you select the target icon, or select one target if your project has many, you see five tabs with different op-
tions. Note that target options are independent. If your project has multiple targets, each has different options.
These are the tabs you see:
Summary: This includes basic build information, including an app version number, minimum OS, de-
fault nib, and so on. You must customize these settings to make a valid App Store build. These options are
described in more detail in Appendix B.
Info: This is a text-like list of options that control app launch. Again, you must customize these settings
for an App Store build. Note that this list is a plist— an XML property list. Editing techniques and contents
are described in Appendix B.
Build Settings: At first sight, this list looks identical to the project build settings: It's another list of com-
piler, linker, and deployment options. The two lists are very similar, but there are some minor differences.
Remember that these target build settings override the project build settings.
Build Phases: The contents of this tab control the files that are processed and the order in which they're
processed. Each phase defines the files and frameworks included in the build sequence. Here, you also can
set dependencies to force a rebuild of a target when some related files are modified. For simple apps, you
can ignore most of the features on this page, except for one: the option to include standard frameworks in
your project.
Build Rules: The rules define how files of each type are processed. Specifically, you can define or create
custom scripts for each existing file type in the list, and you can add new file types of your own, with cus-
tom processing options. These advanced options aren't needed for simple apps; they become useful in more
complex projects.
CROSS-REFERENCE
Build settings are introduced in this chapter. Build phases and rules are described in more detail in Chapter 13.
Exploring build settings
As mentioned earlier in this chapter, the build settings include every compiler, linker, and packager option.
When you build a project, Xcode converts these settings into command-line switches and includes them in the
compiler scripts. The full list of settings is very long and can seem intimidating. But in practice, you can leave
most settings unchanged in a typical project.
To work with the build settings, select the Build Settings tab in the build options window. The settings appear
in an editor, with four buttons that control the layout of the UI. The first two buttons control which settings are
Search WWH ::




Custom Search