Re: XCodBuild Q not answered in docs or FAQ
Re: XCodBuild Q not answered in docs or FAQ
- Subject: Re: XCodBuild Q not answered in docs or FAQ
- From: Chaz McGarvey <email@hidden>
- Date: Fri, 31 Oct 2003 12:20:35 -0700
Hello:
OK, this one is about aggregation...
I have a project that depends on 4 other frameworks projects that I
build. I would really love to be able to build the main project and
have it automatically build all the dependent frameworks it needs.
Aggregate projects seem like the perfect answer to this, but they
appear to only aggregate targets that are in the current project! I
see nothing in the docs or the inspector that appears to allow
dependent linking to targets outside the project.
Now, obviously I can write a script that will go ahead and do the
builds I need, but this seems a bit archaic given the level of tool
support on OS X so far. It also presents a challenge to my HIGHLY
limited shell scripting abilities :-).
So, can anyone here tell me if it is possible to aggregate projects in
XCode, or am I stuck with custom scripts?
It looks to me like what you want to do is set up dependancies. You
can add your app and all your frameworks in one project each as a
different target. Then you just set which targets depend on the
others. When a target is selected that depends on others, it will
build the others first. Cleaning dependent targets will also
automatically clean the targets it depends on, etc.
To set up dependancies, select the target you want to be dependent and
choose 'Get Info' from the 'Project' menu. In the 'General' tab at the
bottom is a list (probably empty) that you can add other targets from
your project.
Hope that helps,
Chaz McGarvey
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.