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.
skyline75489
The easiest way with a project that has the default set up for schemes is just to do Product -> Build For -> Profiling.
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.
来源:https://stackoverflow.com/questions/28059697/how-do-i-toggle-between-debug-and-release-builds-in-xcode-6-7-8

