Information Technology Reference
In-Depth Information
Although you can ignore most of the build system for simple app development, you must know how to make
standard changes to the settings before you can sell apps through the App Stores. The full build system is complex
and includes projects, targets, schemes, configurations, actions, phases, rules—and more. Chapters 12 and 13 in-
troduce it in detail, and also explain how to avoid most of the complexity when you need to make simple changes.
FIGURE 4.24
Look at target build settings, which define how all the elements in a project are combined into one or more binar-
ies.
Adding frameworks
One of the critical settings in the Build Settings section is the framework list.
The framework management system in Xcode 4 is completely different from that in Xcode 3. It's no longer re-
lated to the Add files… menu option. Instead, it's buried in the Build Phases page of the target build settings, as
shown in Figure 4.25.
To add a framework, select your project in the Project Navigator, select the TARGETS icon in the gutter, and se-
lect Build Phases. Click the Link Binary With Libraries reveal triangle, and then select the plus (+) icon at the
lower left.
You can now select a framework from the list that appears, as shown in the figure. Note that the framework is
added to the project root, and not to the Frameworks group. Although the location doesn't affect compilation,
you may want to move it for clarity.
To delete a framework from the project, select it in the Link Binary With Libraries table and click the minus (-)
icon.
Search WWH ::




Custom Search