12. Deploying an Application

To deploy an application, you must build it in Release mode. Whether you’re turning the application over to an employer, selling it on your own Web site, submitting it to Apple’s App Store, or just sharing it with a friend, your application must be built for release. In Xcode 4, this is accomplished most directly with the Archive action.

Archiving

In previous versions of Xcode, you would switch between Debug and Release modes and then build the application for that mode. Xcode 4 introduces the Archive action, which automatically builds in Release mode and packages the build target along with its dSYM files (containing separate debugging information for analyzing release-built applications) into an archive file.

Get Mastering Xcode 4: Develop and Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.