• 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
Custom "Run" Script in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom "Run" Script in Xcode


  • Subject: Custom "Run" Script in Xcode
  • From: Nick Forge <email@hidden>
  • Date: Mon, 20 Oct 2008 17:49:55 +1100

I have a project in Xcode that needs to execute code on a remote system. I have it set up so that I can build in Xcode, then I have a shell script that uses rsync to copy necessary files to my remote system, executes some tests, then sends me some result logs. At the moment, I have a "Run Script Build Phase" that simply has:

cd "$SRCROOT"
./upload_and_test.sh

As the script. When I do a build, Xcode builds locally, then it runs the script, which performs the remote testing and everything else. What I ideally want, is to have Xcode build as it would, but perform my script in place of running the executable, so it did this:

Build (Cmd+B): build locally as per usual
Build and Run (Cmd+R): build locally, then run my shell script, INSTEAD OF the local executable
Run (Cmd+Opt+R): run my shell script INSTEAD OF the local executable


Is there any way to configure an Xcode project to perform custom scripts when running, and to force it to not actually run the executable itself?

Thanks,
Nick Forge
_______________________________________________
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


  • Follow-Ups:
    • Re: Custom "Run" Script in Xcode
      • From: "infinite labs" <email@hidden>
  • Prev by Date: Re: Parallel Building
  • Next by Date: Re: Parallel Building
  • Previous by thread: Re: Shark versus llvm-g++-4.2
  • Next by thread: Re: Custom "Run" Script in Xcode
  • Index(es):
    • Date
    • Thread