Re: Choosing a build configuration for a dependent project
Re: Choosing a build configuration for a dependent project
- Subject: Re: Choosing a build configuration for a dependent project
- From: Chris Hanson <email@hidden>
- Date: Wed, 9 May 2007 18:05:32 -0700
On May 9, 2007, at 3:20 PM, Bryan Hansen wrote:
I am trying to add an xcode project inside another as a dependent
project and want to be able to choose the build configuration of the
dependent project. I cannot find any option to do so. Does anyone
know how to do this?
You can't. Projects in Xcode are different than "solutions" in Visual
Studio or "project" in Eclipse.
Background: When you have project A, and add a reference to project B
to it, that allows you to make *targets* of project A depend on
*targets* in project B. When you build one of your targets in project
A with such a dependency, it will build the target it depends on in
project B.
If there is a build configuration in project B with the same name as
your active build configuration when building project A, that will be
used. Otherwise, project B's default configuration (as specified in
the Project info window, Configurations tab) will be used.
That's the only information passed between the projects. Otherwise,
they're treated as entirely independent, just as if you had opened
them separately in Xcode and built them. This applies to the products
built by their targets as well; a product from a target in project B
will build into project B's built products directory, not to project
A's.
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden