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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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 ▶
.
回答2:
The easiest way with a project that has the default set up for schemes is just to do Product -> Build For -> Profiling.
回答3:
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.