Xcode Server build number incrementation

To increment build number in the Xcode Server I am using 
  1. Set: Current Project Version = 1 and Version System = Apple Generic. Can be found more in Apple documentation
  2. Right click on the bot and choose Edit Bot... 
  3. Open Triggers tab and add Pre-Integration Script 
  4. 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

Popular posts from this blog

Useful git commands