Skip to content

swiftcode/AutomatedVersioning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Automated Version Numbers

A script that automatically updates the version number when a build is performed. It sets $(CURRENT_PROJECT_VERSION) and $(MARKETING_VERSION).

The two files (Config.xcconfig and version.sh) should be dropped in $SRCROOT/$PROJECT_NAME.

The build might not work if ENABLE_USER_SCRIPT_SANDBOXING is set to YES in Build Settings -> Build Options Set this value to NO.

In Build Phases -> Run Script, add the following to the text box under Shell:

cd "$SRCROOT/$PRODUCT_NAME"
source version.sh

Note: Script is from an article at https://medium.com/@mateuszsiatrak/automating-build-number-increments-in-xcode-with-custom-format-a-practical-guide-bcc90a19f716

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages