Re: Can a shell script build phase's output be used in a copy build phase?
Re: Can a shell script build phase's output be used in a copy build phase?
- Subject: Re: Can a shell script build phase's output be used in a copy build phase?
- From: Chris Espinosa <email@hidden>
- Date: Tue, 17 May 2005 08:48:49 -0700
On May 17, 2005, at 6:30 AM, Brian Smith wrote: I'm wanting to generate a plist file from a python script and copy it into the product's resource directory, so I figured I could use a shell script build phase plus a copy build phase to accomplish this. Is it possible to for a copy build phase to use the output of the previous build phase?
Yes. You may have to create a "placeholder" file in order to set up the second build phase, or do the build with the shell script build phase in place first, then add its result to your project and then to the Copy Files build phase. Plus, I put the derived product of the script into the build folder which is outside the project directory. Is the away to use the BUILT_PRODUCTS_DIR or other settings variable to specify the output file in the shell script build phase's inspector?
Do you have a popup in your Copy Files phase inspector for the Destination? If so, choose Products Directory. If not, choose Absolute Path and enter $(BUILT_PRODUCTS_DIR) Finally, is there another way to approach this?
You can use ${BUILT_PRODUCTS_DIR} directly in the shell script and avoid having to use a second build phase. (Note the bash-shell-style braces here, rather than the Xcode-style-parenthesis).
Chris |
_______________________________________________
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