Skip to content

Instantly share code, notes, and snippets.

View m-irfan's full-sized avatar

Irfan Anwar m-irfan

  • Lahore
View GitHub Profile
@danielrhodes
danielrhodes / update-version.sh
Last active February 15, 2022 12:47 — forked from jellybeansoup/update-version.sh
Script for Incrementing Version Numbers
#!/bin/bash
# A command-line script for incrementing build numbers for all known targets in an Xcode project.
#
# This script has two main goals: firstly, to ensure that all the targets in a project have the
# same CFBundleVersion and CFBundleShortVersionString values. This is because mismatched values
# can cause a warning when submitting to the App Store.
#
# Secondly, the script ensures that the build number is incremented when changes are declared
# based on git's records. Alternatively the number of commits can be used, and is toggled by using
# the argument "--reflect-commits". If not on "master", the current branch name will be used to