Re: How to create dependent projects?
Re: How to create dependent projects?
- Subject: Re: How to create dependent projects?
- From: John Mikros <email@hidden>
- Date: Tue, 21 Jul 2009 18:17:06 -0700
I have no idea how you're "supposed to" do it, but what we do is
create a Run Script Build Phase with the following script, and this
works for us.
cd "$SRCROOT/path/to/your/other/project"
xcodebuild -project OtherProject.xcodeproj -target "My Target" -
configuration Debug
exit
We also put the other project into Groups and Files for easy access to
it.
On Jul 21, 2009, at 5:57 PM, Jack Repenning wrote:
OK, this is real basic, I think, and I even think I've done it before.
But it's not working now, and searching this list and google didn't
solve it for me. So I must be missing something or other really
obvious. Sorry, but:
How do you create dependent projects?
Just to be clear: what I mean by that is that clicking "Build All" in
one of them (the "parent") causes the other one ("child") to be built,
as well as the parent stuff.
I think the answer is "you drag the child project and drop it onto the
parent object."
But I must be doing something wrong, there, because I've done that a
bunch of ways, and none of them achieves the goal. Some don't do
anything at all, others seem to get close, but bottom line: building
parent does not build child. Grrr.
My closest approach to date:
1. Open an Xcode window onto each of the two projects
2. Drag the "child" project icon (the blue Xcode document symbol) from
the "child" Groups & Files list
3. Hover over the "parent" project icon, noting that it turns blue and
hungry
4. drop
5. The usual "add stuff" sheet appears, asking such questions as
- Copy items into destination? (answer provided: no)
- Reference type: (default)
- Text encoding: (unicode)
- Recursively create groups (gray, selected)
- Add to targets: ("All" is checked)
6. This causes the "child" icon to appear at the top of the G&F list
for Parent, which seems goodly
7. This does not cause anything to appear inside the parent's "All"
target/group
8. And, as I say, there's no build chaining
I tried dragging the child Xcode-doc icon into the target All, but it
never looked hungry, and dropping did nothing.
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
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