Re: Second instance of Xcode also open first instance's project
Re: Second instance of Xcode also open first instance's project
- Subject: Re: Second instance of Xcode also open first instance's project
- From: Fritz Anderson <email@hidden>
- Date: Wed, 09 May 2012 09:51:04 -0500
On 9 May 2012, at 4:30 AM, Lars C. Hassing wrote:
> Multiple instances of Xcode 3.2.5 (and earlier) works fine.
Well, apparently multiple instances of Xcode 4 don't. Each new instance uses the "restore windows" feature to open every currently-opened project when it starts up. The list of windows to restore is global, so each new instance inherits the open project of the previous one.
You could try unchecking "Restore windows when quitting and re-opening apps" in the General panel of System Preferences, but you don't need multiple Xcodes.
> When I switched to Lion/Xcode 4.3 it still seems to work,
> except that I get THREE projects though I only open two.
>
> Should it no longer be possible to debug two programs at the same time
> each having different environment ?
That's what schemes are for, and you can do it all in one Xcode.
In each project, bring up the Scheme editor (Product > Edit Scheme…, cmd-<), select the scheme for your target, and use the Arguments tab of the Run action to set up your environment variables. You can vary the environment by listing every possible key-value pair and unchecking the ones you don't want. Or, you could duplicate the scheme (Product > Manage Schemes…, select the scheme, select Duplicate from the gear menu), and put in your alternate environment.
Select the scheme you want from the pop-up in the toolbar. Xcode allows you to execute multiple instances of a target: Just click the Run button again, and you'll have the option of running a concurrent instance.
— F
--
Fritz Anderson -- Xcode 4 Unleashed -- 21-May-2012
_______________________________________________
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