سؤال

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

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top