deko
deko

Reputation: 2636

XCode 5: How to build Debug configuration only

It seems that XCode always builds both Debug anв Release configurations (see screenshot attached). I can't untoggle "Profile" option. I need to build Debug version only in 95% of my time. How can I save time by not building Release version every time I press "Build"?

enter image description here

Upvotes: 3

Views: 8924

Answers (2)

neural5torm
neural5torm

Reputation: 783

The tab you selected just shows the target(s) (MagicCards1 here) that will be built for each action (Run, Profile, Archive...).

Only one build will be made with the appropriate build configuration (Debug, Release, ...) for any given action: your screenshot shows that the 'Debug' configuration will be used to build your target when you run your project, leading me to think that Xcode already does what you're expecting (and that it'll only compile the source files that changed since the last build).

You can try to compare Debug and Release builds made from scratch by cleaning (Shift+Cmd+K) and building (Cmd+R) with different build configurations in the scheme's Run settings.

You should also check if 'Build Active Architecture Only' is set to Yes and if 'Analyze during Build' is set to No in your Build Settings: Analyze during Build screenshot

You may also want to watch this WWDC 2013 video: Xcode Core Concepts 401. Schemes are covered around the 44'-mark.
https://developer.apple.com/videos/wwdc/2013/?include=401#401

Upvotes: 0

Shebuka
Shebuka

Reputation: 3228

By default, XCode practically always build for Debug, in Release XCode build only when you select from menu Archive or to Profile (shortcut cmd+I) and you see this because when selected you see XCode build your project.

Upvotes: 1

Related Questions