Target with Shell Script Dependency
Target with Shell Script Dependency
- Subject: Target with Shell Script Dependency
- From: Philip Aker <email@hidden>
- Date: Tue, 19 Jun 2007 02:11:18 -0700
was (Re: Xcode-users Digest, Vol 4, Issue 278)
On 2007-06-18, at 21:02:45, Adam wrote:
Wha... Ok I didn't understand a word of that... where could I find
info on how to do this?
I'll describe Steve Checkoway's method because it's really the right
thing to do:
1. From the Project Menu, choose New Target…
2. From the ensuing dialog choose Special Targets->Shell Script
Target and give it a name. Say Prep.
3. Back in Xcode project window, from the Targets item, double-click
on the target which needs to have the preparation done.
4. At the bottom of the ensuing dialog, click the + button, and from
there, choose the Prep target.
5. Back in Xcode project window, from the Targets item, disclose the
Prep target to see a Run Script item.
6. Double-click on the Run Script item to see a shell script window
and enter your commands as necessary.
All help is appreciated and thanks in advance.
Please keep your posts straight and to the point. Also please
comment the code you use as I am still learning OpenGL and Xcode
and may not yet understand the meaning of the command.
Yeah. Some days the strawberry blonde doesn't just pop out of the
cake and start bubblin'.
Thank you.
On Jun 15, 2007, at 12:09 PM, email@hidden
wrote:
Message: 6
Date: Fri, 15 Jun 2007 09:42:03 -0700
From: Philip Aker <email@hidden>
Subject: Re: Xcode-users Digest, Vol 4, Issue 271
To: Steve Checkoway <email@hidden>
Cc: XCode Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On 2007-06-15, at 03:52:39, Steve Checkoway wrote:
I use 'touch' in a build script phase that has been moved to the
very top of the target build phases. It touches things like .sdef
and .r files that Xcode often misses. And even then, sometimes the
touch only kicks in every second time.
The files needed to be recompiled are computed before the first
build phase. My solution was to create a separate target upon which
my main target depends and have that run the script to do things
like touch files (or in my case, increment build numbers).
That's a very good solution. I'll probably adapt to it at sometime.
Philip Aker
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