Custom "Run" Script in Xcode
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