Monday, November 7, 2016 [Tweets] [Favorites]

Better Xcode Run Script Build Phases

Giovanni Lodi:

The single most effective action you can take to improve your build scripts is to extract them into their own files.

[…]

Xcode will name every new run script phase as “Run Script”, but that can be quite confusing when you have more than one. Double click on the “Run Script” header to reveal a text field you can use to rename your phase.

[…]

The idea is to have a single script invocation in Xcode, calling a script that will then take care of executing the single scripts.

This technique will help you grow your script, change their order, etc. in a tidy and understandable way.

[…]

You can make your scripts output compilation errors or warnings the same way Xcode does. I learnt this a while ago from this post.

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment