This is not possible in Xcode 3.2
Edit:
I answered this question so briefly because there was no way to do it properly.
Of course, since this is software, you can do everything: starting with the hackers of Input Manager or other ways of injecting code into the system interception of the keyboard, you can change your local system to do anything at any time. You can configure the action of the Applescript folder (arrgh) or use the launch daemon and the FSEvents tool to view the source code files.
You can also add several scripts to Xcode (user scripts in the menu, script phases in the targets, user actions in the organizer, there is even a very unknown possibility to run the script), but all these solutions are erroneous, because they include user or user preferences on the user a computer.
I do not know a solution that just works after checking the project from SCM. I believe that settings are needed for this and similar scenarios, so I raised an error (radar 7203835, "Feature: more custom script triggers in the Xcode workflow"). I have not received any reviews yet.
Here is the full text of the radar record:
It would be helpful to have more places to run scripts in Xcode.
Examples:
Preliminary build scripts
Pre-build scripts can be used to create prerequisites such as * .xcconfig files or config.h headers. This is not possible with the “Run script Build Phases”, because dependency tracking occurs before any build phase is started.
Post-build scripts As above, but it works after the build (including code signing, etc.). Useful for additional packaging, validation, etc.
Pre / post SCM scripts.
To check the integrity of the project.
Save the Pre / Post Script file.
To check / modify the file before saving. For example. run cody beautifiers
Custom project actions.
I know about the ability of the organizer to determine arbitrary actions. But this is a user function (not part of the project). I would like to define actions, such as assembling or cleaning, that appear in the build menu and which are part of the project.
Nikolai Ruhe 07 Sep '09 at 19:22 2009-09-07 19:22
source share