Re: Switching executable automatically
Re: Switching executable automatically
- Subject: Re: Switching executable automatically
- From: Roland King <email@hidden>
- Date: Thu, 31 Dec 2009 23:56:10 +0800
I didn't know this .. I do have a 1-1 mapping between targets and executables and would love it if it switched automatically (but mine don't either). How do you associate a target executable with a target?
On 31-Dec-2009, at 11:53 PM, James Bucanek wrote:
> Scott,
>
> There's no setting. When you change the active target Xcode looks to see if the new target has an executable (i.e. debuggable) product. If it does, Xcode also changes the target executable to match the new active target.
>
> A lot of targets don't produce executable products (i.e. the target causes a product to appear in the products group and an executable to appear in the executables group), and creating a custom executable does not satisfy the condition. Changing the active target to one without an executable product leaves the active executable at whatever it was previously set to.
>
> Scott Ribe <mailto:email@hidden> wrote (Monday, December 28, 2009 2:45 PM -0700):
>
>> In most multi-target projects, when I switch the active target, the
>> executable also switches appropriately. But I have one where I must always
>> remember to change the executable as well.
>>
>> This started out as a single Cocoa app target (an old one, actually
>> converted from CodeWarrior). Then I added a target to build an Automator
>> action, and added the executable Automator. I've looked at the targets'
>> settings, and I don't see what to change.
>>
>
>
> James Bucanek
> ____________________________________________________________________
> Author of Beginning Xcode ISBN: 047175479X
> <http://www.beginningxcode.com/>
>
> _______________________________________________
> 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
_______________________________________________
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