Tagging XCode's Archive builds in Git or another SCM -


i'd xcode archive builds automatically tag scm (git in project).

i've noticed in schema editor, archive builds can run pre , post step build scripts. ideal if post steps run if build successful, , tag go there.

i'd tag name refer name of build configuration (i have testflight , appstore configurations, debug , release, not archived), version number built, , build number. tag might go like: testflight_2.1.3_#11 or appstore_2.9.0_#3.

in xcode's project settings, can use variable substitutions, such $(build_configuration). can these used in archive build script?

i'm not sure if there variable current version string , build number of app. i've not managed find 1 if there is.

in xcode's project settings, can use variable substitutions, such $(build_configuration). can these used in archive build script?

yes. build settings available environment variables scripts run part of run script build phase. easy way see variables set (if don't trust build log output) put env in script print them out, or env > environment.txt if want save them file.

i'm not sure if there variable current version string , build number of app. i've not managed find 1 if there is.

there not. however, if want retrieve current version can project's info.plist file (and there should environment variable pointing file active project).

xcode archive doesn't have concept of current build number. use script figure out build number other source (xcode server, counter on disk, whatever) , set cfbundleversion key in info.plist number.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -