How do I get Xcode to build an OS X app in release mode? I can only seem to find instructions for earlier versions and none of the screenshots match. I didn't see anything when I put "release" into the help menu's search.
Asked
Active
Viewed 8.5k times
3 Answers
237
In Xcode 6 - 10:
Choose Product -> Scheme -> Edit Scheme. Change the Build Configuration
under the Info
tab.
Shortcut: hold Alt⌥ and click the run button ▶
.
-
45Man, never would have discovered that. – drewish Jan 21 '15 at 04:57
-
8@drewish The product icon on the left top corner (on the right of "Run" and "Stop" button) also has a shortcut for "Edit Scheme". – ljk321 Jan 21 '15 at 05:01
-
2After looking at the scheme, the other short cut to get a release build is to profile the app. – drewish Jan 21 '15 at 22:15
-
2I don't see where the actual .app files end up. – Wolfr Nov 04 '16 at 11:43
-
6You should use "archive" to get the actual .app. – ljk321 Nov 06 '16 at 02:11
-
It should be noted that 'Edit Scheme' allows one to edit the defaults for any of the predefined schemes (e.g. 'Run', 'Test', 'Profile', 'Archive', etc) so that they use the 'Release' or 'Debug' configurations. – Pierz Sep 29 '17 at 16:49
-
1This would have to be the most "hidden" thing in all of computing :O – Fattie Jan 03 '19 at 12:39
-
bounty paid to spectacular answer, @skyline75489 :) – Fattie Jan 04 '19 at 17:36
15
When you want to generate a release build, choose Product -> Archive. That is a Release build. Now you can export as a Mac OS X app.

matt
- 515,959
- 87
- 875
- 1,141
12
The easiest way with a project that has the default set up for schemes is just to do Product -> Build For -> Profiling.

algal
- 27,584
- 13
- 78
- 80
-
1Nice. Then is there an easy way to run it, without the profiler also starting up? – mm2001 Nov 17 '15 at 19:23
-
I would like to know this too. I don't want the profiler to start up. – chrisdembia Mar 09 '16 at 20:26
-
This is exactly what I needed! If you want to run as well as build, use the other answer by skyline75489. – Emil Styrke Apr 01 '16 at 09:44
-
1Profiling should have nothing to do with preparing a release version of the app. – Eric Gopak Oct 04 '16 at 15:33