Running a script in Build Pre-Action
Running a script in Build Pre-Action
- Subject: Running a script in Build Pre-Action
- From: Peter Teeson <email@hidden>
- Date: Fri, 17 Apr 2015 14:42:27 -0400
Using both environments OS X 10.8.5 + Xcode 5.1.1 or OS X 10.10.3 + Xcode 6.3
1. If I add a Run Script to the Target Build Phases and drag it to before the Compile phase the script executes and any output is added to the Build log.
2. But if I edit the Scheme and add it there instead of the Target Build Phases nothing appears in the Build log. In fact it's not clear to me that the script is even executed in this case. How could I tell?
The script is a file in the project and has the .command extension and chmod u+x The script is just a test and it looks like this: #!/bin/sh cd /Volumes/Data/Development/MyProjects/test echo "this is text from the script in the scheme settings"
So why does it not work at the Scheme level? Isn't that a Project level setting?
respect….
Peter
|
_______________________________________________
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