How do I toggle between Debug and Release builds in Xcode 6 / 7 / 8?

痞子三分冷 提交于 2019-11-28 17:16:48

问题


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.



来源:https://stackoverflow.com/questions/28059697/how-do-i-toggle-between-debug-and-release-builds-in-xcode-6-7-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!