How can I build for release/distribution on the Xcode 4?
Build for debug is just press on the PLAY symbol, but I don't know how to Build for distribution/release?
The short answer is:
- choose the iOS scheme from the drop-down near the run button from the menu bar
- choose product > archive in the window that pops-up
- click 'validate'
- upon successful validation, click 'submit'
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