How to build for release/distribution on the Xcode 4

xcode4

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

Best Answer

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'