SpokaneDude
SpokaneDude

Reputation: 4984

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).

Upvotes: 2

Views: 6712

Answers (1)

Brad Allred
Brad Allred

Reputation: 7534

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.

Upvotes: 12

Related Questions