Re: with XCode 4 how do I run a release version on the sim/device
Re: with XCode 4 how do I run a release version on the sim/device
- Subject: Re: with XCode 4 how do I run a release version on the sim/device
- From: Matt Neuburg <email@hidden>
- Date: Sun, 01 May 2011 12:39:46 -0700
> Message: 4
> Date: Sun, 01 May 2011 15:30:24 +0800
> From: Roland King <email@hidden>
> Subject: with XCode 4 how do I run a release version on the sim/device
>
> I found the schemes and have, as is normal, Run, Test and Analyze pointing to Debug and Profile, Archive and Test to Release, and I don't really want to keep changing those as they are reasonable defaults. What I've done at this point is copy that whole scheme to a new scheme called the same with 'Release' tacked on the end and then switched the 'Run' selection on that to a Release build leaving everything else the same. It seems a bit heavy however to copy an entire scheme to change that one setting for just the Run phase, is there another way to override on a run-by-run basis which build you are using?
There sure is. Hold down Option as you say Run in order to pass thru the scheme editor on your way to running the app. This lets you switch build configurations on a case by case basis. The scheme editor in this case has a Run button so you change change the pop-up and hit Return to proceed with the run.
However, what you did is not wrong, and indeed in my iOS book I recommend it as one approach (with Option-Run as the other). A scheme is just a list of instructions so there's nothing really heavy-handed about it. It would feel a lot less heavy-handed if the Scheme pop-up didn't insist on munging all destinations together with all schemes; I've submitted a bug suggesting that this pop-up be broken into two, one for schemes and one for destinations, since the two are in fact orthogonal.
Hope that helps! Either use the Option-Run approach or, at least, feel better about the approach you picked. m. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden