Running a release build with Xcode 4

Joey picture Joey · Mar 22, 2011 · Viewed 56.8k times · Source

I see how Xcode 4 splits the info on your targets nicely in one view, but how does one build and run these different builds? All I see are the options to build and to run, and these options to build for running, testing, and profiling. It's not clear to me how these map to the build configurations, though.

Answer

Adam Bryzak picture Adam Bryzak · Mar 22, 2011

Xcode 4 introduces schemes which provide all the options on how to build/run/profile/etc. your application. You can change the active scheme using the Scheme drop-down button at the top of the project window and/or edit the scheme via Product > Edit Scheme… ⌘< menu item. Then on the left source list, you can select the Run item, and in the Info tab in the right pane you can choose to use the Release configuration in the Build Configuration drop-down.