Search code examples
build-processxcode5

How to run multiple bash/sh scripts in xcode 5 during build phase?


I have a need to run two (2) bash/sh scripts in XCode 5 during the build phase. One creates a connection to Crashlytics, the other creates a Mainstoryboard.strings file with modifications from the original.

How do I do this? Just run them one after the other? (Looked in Google and SO... found nothing that addresses this question).


Solution

  • you can run as many bash scrips as you like at any point in the build phase.

    select your target, then either:

    • from the menu: Editor -> Add Build Phase -> Add run script build phase.
    • Click the little "+" icon in the top left of the build phases window.

    you can then drag the build phases into which ever order you need.