Xcode Server build number incrementation
To increment build number in the Xcode Server I am using
- Set: Current Project Version = 1 and Version System = Apple Generic. Can be found more in Apple documentation.
- Right click on the bot and choose Edit Bot...
- Open Triggers tab and add Pre-Integration Script
- Give a name (example: Set Build Version) and write script:
# Change directory to project path
cd $XCS_PRIMARY_REPO_DIR
# Set build version same as integration number
xcrun agvtool new-version -all $XCS_INTEGRATION_NUMBER
Comments
Post a Comment