Re: Build condiguration for aggregate targets
Re: Build condiguration for aggregate targets
- Subject: Re: Build condiguration for aggregate targets
- From: James Bucanek <email@hidden>
- Date: Mon, 21 Nov 2005 10:12:24 -0700
Mirko Viviani wrote on Monday, November 21, 2005:
>I know that xcode to build a target search the build configuration
>with the same name as the active build configuration and if not found
>it falls back using the default.
>
>Is there a way to map configuration for targets or are there problems
>doing that?
>Maybe with a custom shell script?
I'm not sure what you're trying to do, but it doesn't sound like you're talking about aggregate targets as much as cross-project dependencies.
It sounds like you have target dependencies with cross-project targets (targets in other projects) and those projects have a different set of build configurations than the project that depends on them.
As you already said, Xcode will use the build configuration in the other target that matches the current build configuration, or the default build configuration if a match cannot be found.
So...
Yes, I suppose this could be "fixed" with a custom build script. Replace the cross-project dependencies with a build script that examines the build configuration name (it's in an environment variable), chooses the correct build configuration for the dependent project, then executes the xcodebuild tool with the desired build configuration.
Of course, "chooses the correct build configuration" is up to you to deterime.
--
James Bucanek
_______________________________________________
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