Re: A question about sending build output to specific directories using xcodebuild
Re: A question about sending build output to specific directories using xcodebuild
- Subject: Re: A question about sending build output to specific directories using xcodebuild
- From: Fritz Anderson <email@hidden>
- Date: Tue, 2 Sep 2008 13:56:41 -0500
On 2 Sep 2008, at 12:53 PM, OSullivan, Steve wrote:
I have three xcode projects, and I am building them each from the
command
line using xcodebuild.
I wish to build them such that their build output goes into three
separate
directories all contained in a single parent directory.
Ex:
~/Desktop/BUILDS +-- /Build 1/ build results.app
|
+-- /Build 2/ build results.app
|
+-- /Build 3/ build results.app
Is there an option on the command line for xcodebuild that will
allow me to
specify this? If I use the XCode Preferences/Building settings, it
seems to
make a global setting for all of these projects, and it seems that
the build
output of each overwrites the output of the previous project, which
is not
the desired result.
[Statutory admonition that it's spelled "Xcode," capital-X, small-c.]
I'm not 100% sure I understand your question, and my suggestion is
probably not a 100% solution for you...
The Preferences -> Building panel sets the build destination for all
your projects, subject to project-by-project settings. Personally, I
like to have a global-default build destination, because it makes
cross-project dependencies work better.
It _appears_ you want to set custom build-product directories for just
those three projects. In each, open the Project Info window (Project -
> Edit Project Settings), select the General tab, and under "Place
Build Products In:" select "Custom location." Use the Choose... button
to select the destination folder for that project. Your products will
be in configuration-specific (Release/, Debug/, etc.) directories
inside the destination folder, but I think this is close to what you
want.
Another approach might be to add a run-script build phase to your
targets (Project -> New Build Phase -> New Run Script Build Phase), at
the end of the target build-phase list. Have the script in that phase
do the copy. Search the Xcode docs for "BUILT_PRODUCTS_DIR" to see
useful environment variables for doing things like finding your
target's product.
— F
--
Fritz Anderson -- Xcode 3 Unleashed: Now Available -- http://x3u.manoverboard.org/
_______________________________________________
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