Re: 3.2.5 Active Configuration Confusion
Re: 3.2.5 Active Configuration Confusion
- Subject: Re: 3.2.5 Active Configuration Confusion
- From: Christiaan Hofman <email@hidden>
- Date: Fri, 14 Jan 2011 01:43:41 +0100
On Jan 14, 2011, at 1:21, David E Blanton wrote:
> Yes I agree it always seemed to work but in the following it does not.
>
> Lib 1 has dependency on Lib 2
>
> Lib 3 has dependency on Lib 2
>
> Lib 1 has a copy phase to copy its product to a specific location.
>
> Lib 3 is my top level Lib.
>
> Assume Lib 1 has debug selected as active configuration.
>
> In Lib 3 I select release as the active configuration.
>
> The build errors on the Lib 1 copy phase as it wants to copy a release version but since it is in debug the copy references the debug version.
>
> If I manually set Lib1 to the active configuration that matches LIb 3 all builds well.
>
This description does not seem to make much sense. There is no dependency between Lib 1 and Lib 3 whatsoever, so setting the active configuration for one project will not affect it in the other. Also, I don't see why you're mentioning Lib 2, as that seems just an irrelevant bystander. Are you sure your description is correct? Also, I don't know what you mean by "the copy references the debug version."
Apart from that, you may or may not copy the correct build product in the copy phase. It should a product as referenced by the Xcode project in the Groups & Files table. You should not use an actual build result from Finder. That's something that's often done wrong.
Christiaan
>
> On Jan 13, 2011, at 2:06 PM, Christiaan Hofman wrote:
>
>>
>> On Jan 13, 2011, at 21:46, David E Blanton wrote:
>>
>>> When I switch the active configuration in a project it appears that the active configuration of dependent projects is not switching.
>>>
>>> Is this a known bug or am I doing something wrong in setting target dependencies.
>>
>> You must be doing something wrong, because this generally does work. Without any more information, there is no way of saying what you could be doing wrong. What makes it appear so?
>>
>> Christiaan
>>
>>
>>
>
>
_______________________________________________
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