Information Technology Reference
In-Depth Information
TIP
You don't usually need to look inside the build folders. You do need to know where to find the built application,
but you can reveal it by clicking the file in the Products group in the Symbol Navigator and using the Show in
Finder… option.
Derived Data cleanup: Temporary build files take up unnecessary space. When you complete a project,
you can use the Delete option to remove them. This is not equivalent to the Product⇒Clean option in the
main Xcode menu. Clean removes build-related files. Delete removes all other supporting files created by
Xcode, including logs and indexes.
Snapshot management: Project snapshots, if any, are listed in the lower part of the main area. You can
restore a project to a snapshot (an older state) with the Restore Snapshot button at the lower left of the main
area. You also can delete unneeded snapshots to save disk space. You cannot create snapshots here.
NOTE
Xcode 3 created derived data, including build files, in the project folder. Xcode 4 creates derived data in an inde-
pendent folder. Before you delete a project from disk, use the Delete option in the Organizer to delete this
data—otherwise it's never removed. Note that you can click the arrow next to the Derived Data path to open the
relevant folder in Finder.
CROSS-REFERENCE
For information about creating and comparing snapshots, see Chapter 14.
Creating Archives
In spite of the name, the Archives feature, shown in Figure 10.14, has nothing to do with archiving or backups
in the sense of keeping old copies of source code. In Xcode, an archive is a packaged, provisioned, and code-
signed application build that can be sent to beta testers or uploaded to the App Store.
To create an archive, use the Product⇒Archive option in the main Xcode menu. Creating an archive adds the
app to the list that appears at the left of this page. You can build an archive as often as you want. Each build
adds a new entry to the list in the bottom half of the main area.
The buttons at the top left implement three archive-related features:
Validate: This runs basic checks on an archive to confirm that it's suitable for the App Store, and it veri-
fies that the contents have been code-signed correctly.
Share: Use this option to create an Ad Hoc build that can be shared online or attached to an e-mail.
Submit: This uploads the app to the App Store. You need to prepare a marketing description with sup-
porting images and text before the App Store accepts an upload.
Search WWH ::




Custom Search