Re: How to create dependent projects?
Re: How to create dependent projects?
- Subject: Re: How to create dependent projects?
- From: Dave Carrigan <email@hidden>
- Date: Tue, 21 Jul 2009 20:35:17 -0700
Note that you can also create a dependency on a target in another
project. Just add the other project to your project and then create a
dependency as usual. It works best if all of the projects have similar
build configurations.
On Jul 21, 2009, at 7:43 PM, Caleb Strockbine <email@hidden
> wrote:
On Jul 21, 2009, at 8:57 PM, Jack Repenning wrote:
How do you create dependent projects?
There's some confusion here: you don't actually build projects, you
build targets. Likewise, projects don't depend on each others, but
targets do depend on other targets. I know it seems like a minor
point of terminology, but now that you're aware of the difference
you can probably figure out the rest for yourself.
1. Add the "child" project to the "parent" project either by
dragging and dropping the child in the parent's Groups and Files
list, or via the Add to Project... menu command.
2. Select one of the targets in the parent project and open the Info
window: click the Info icon in project window toolbar, use the File-
>Get Info menu command, or use the contextual Get Info menu command.
3. The General pane in the Info window lets you edit the
dependencies for the selected target. Click the + button to add a
new dependency; a sheet will drop down that lets you select all the
targets that the selected target can depend on. That is, you'll see
the targets in all the child projects as well as any other targets
in the parent project.
4. Select the targets on which you want the selected target to
depend, and click the Add button to dismiss the sheet.
5. Close the Info window and build the selected target. You'll
notice that the other targets on which the selected one depends will
build first.
Note that there's a type of target -- Aggregate -- that's used
specifically for building other targets. Aggregate targets are
basically empty targets that, through their dependencies, just cause
other targets to build.
Check out the "Defining Target Dependencies" section of "Xcode Build
System Guide" for more information.
-Caleb
_______________________________________________
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