Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I build for release/distribution on the Xcode 4?

Tags:

xcode4

Build for debug is just press on the PLAY symbol, but I don't know how to Build for distribution/release?

like image 405
Anonymous Avatar asked Mar 13 '11 03:03

Anonymous


People also ask

How do I build for release in Xcode?

To create a release build, you have to edit your current scheme (⌘<) and highlight "Run [name of application]. On the right, select "Build Configuration" and choose "Release". Build as usual.

What is build configuration in Xcode?

A build configuration file is a plain-text file you use to specify the build settings for a specific target or your entire project. Build configuration files make it easier to manage build settings yourself, and to change build settings automatically for different architectures and platforms.


2 Answers

The short answer is:

  1. choose the iOS scheme from the drop-down near the run button from the menu bar
  2. choose product > archive in the window that pops-up
  3. click 'validate'
  4. upon successful validation, click 'submit'
like image 192
benvolioT Avatar answered Nov 25 '22 13:11

benvolioT


You can use command line tool to build the release version. Next to your project folder, i.e.

$ ls ... Foo.xcodeproj ... 

Type the following build command:

$ xcodebuild -configuration Release 
like image 37
Shao-Chuan Wang Avatar answered Nov 25 '22 11:11

Shao-Chuan Wang