• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: my first target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: my first target


  • Subject: Re: my first target
  • From: tiennou <email@hidden>
  • Date: Thu, 4 Oct 2007 14:39:41 +0200

Le 4 oct. 07 à 14:23, Alex West a écrit :

Hi,

I have just switched over to xcode from text mate. I am working on a large _javascript_ JSEE application and I would like to make a target that copies a particular src directory to a server. The trick is that unix likes to over write directories and I want to merge my src directory with a particular directory on the server. Im using a great utility to mount the server on my computer and right now I am running a shell command

cp -rf /my source directory /server/directory

Is there anyway to make a target that will execute that command for me so that I can just press build and then test?

Yes, you would need to add a Run Script Phase (from Project > New Build Phases > ...). The trick is that you'll need to use Xcode environement variables to do the work cleanly (eg. using "${TARGET_BUILD_DIR}/${WRAPPER_NAME}" will always point to your target product (eg build/Debug/TestApp.app or whatever)...

You can also create a new target and put your new build phase here, (make it dependent of your main target), like that you could still build without sending to server... (You will also need to hardcode the WRAPPER_NAME above, since it will obviously be different ;-)).

HTH,
tiennou


 _______________________________________________
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

References: 
 >my first target (From: Alex West <email@hidden>)

  • Prev by Date: my first target
  • Next by Date: xcode and p4v
  • Previous by thread: my first target
  • Next by thread: Re: my first target
  • Index(es):
    • Date
    • Thread