Run a shell script before build in Xcode

后端 未结 2 630
北荒
北荒 2021-01-02 07:24

I need to adjust my build and version number for my project before build/archiving.
I tried multiple things, but so far to no avail.

I added a target with the sc

2条回答
  •  伪装坚强ぢ
    2021-01-02 07:48

    Xcode has command line tools for build/archiving: https://developer.apple.com/library/ios/technotes/tn2339/_index.html

    So, you can write shell script that at first runs your script for adjusting build/version number and then runs xcode build/archive as command line tool.

提交回复
热议问题