We’ve all been there. Write some code. Commit. Edit some code. Commit. Run the build automation. I had a little script I ran – so open terminal and run. Now there’s an easy button. Commit, use a keystroke to invoke the script without leaving Xcode.
- To set it up, open Xcode and click on Behaviors under the Xcode menu.
- Under there, click Edit Behaviors…
- Click the plus sign in the lower left corner of the screen and then in the list of options, scroll all the way down to the Run option
- Click Show Script…
- Select the preferred script and click OK
You can also assign a keystroke – so do a commit, then run the necessary workflows. Just click in the command field for the custom entry. However, A LOT of the keystrokes are taken so might take a sec to find one that works… Or one can always steal an existing keystroke if allowed…