Graphics Programs Reference
In-Depth Information
For the More Curious: The Application Bundle
When you build an iOS application project in Xcode , you create an application bundle . The
application bundle contains the application executable and any resources you have bundled
with your application. Resources are things like XIB files, images, audio files - any files
that will be used at runtime. When you add a resource file to a project, Xcode is smart
enough to realize that it should be bundled with your application and categorizes it accord-
ingly.
How can you tell which files are being bundled with your application? Select the Homep-
wner project from the project navigator. Check out the Build Phases pane in the Homepwn-
er target. Everything under Copy Bundle Resources will be added to the application bundle
when it is built.
Each item in the Homepwner target group is one of the phases that occurs when you build a
project. The Copy Bundle Resources phase is where all of the resources in your project get
copied into the application bundle.
You can check out what an application bundle looks like on the filesystem after you install
an application on the simulator. Navigate to ~/Library/Application Support/
iPhone Simulator/(version number)/Applications . The directories with-
in this directory are the application sandboxes for applications installed on your computer's
iOS simulator. Opening one of these directories will show you what you expect in an ap-
plication sandbox: an application bundle and the Documents , tmp , and Library direct-
ories. Right or Command-click the application bundle and choose Show Package Contents
from the contextual menu.
Figure 14.8 Viewing an application bundle
Search WWH ::




Custom Search