Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Per-Target Copy Files




On Jul 10, 2006, at 9:05 AM, Finley Lee wrote:

What’s the recommended way to copy different files to a location in the bundle based on the selected target?
If this is really a target setting, then adding a Run Shell Script phase to that target might work.

I prefer to put the script in an external file and run the same shell script in all targets and use environment variables to determine the needed information, for example ${CONFIGURATION} and ${TARGET_NAME} seem useful in your situation. You can determine what variables are being set by looking at the Build Log (it is probably documented somewhere, but I was too lazy to go seek it out).

The script might have lines looking something like:
if [ "${TARGET_NAME}" = 'Demo' ]; then
#	blah blah blah
fi

I am interested in what others do as well.


Aaron

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Per-Target Copy Files (From: "Finley Lee" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.