Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 810
drewish Avatar asked Jan 21 '15 04:01

drewish


People also ask

How do I Release mode in Xcode?

To create a release build, you have to edit your current scheme (⌘<) and highlight "Run [name of application]. On the right, select "Build Configuration" and choose "Release". Build as usual.

What is debug mode and Release mode?

Debug Mode: When we are developing the application. Release Mode: When we are going to production mode or deploying the application to the server. 2). Code optimization.

How do you enter debug mode in Xcode?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.


2 Answers

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 .


enter image description here

enter image description here

like image 145
skyline75489 Avatar answered Sep 23 '22 15:09

skyline75489


The easiest way with a project that has the default set up for schemes is just to do Product -> Build For -> Profiling.

like image 43
algal Avatar answered Sep 24 '22 15:09

algal