Skip to content

Instantly share code, notes, and snippets.

Avatar

Irfan Anwar m-irfan

  • Lahore
View GitHub Profile
@m-irfan
m-irfan / Pre-Post Bash Script to auto increase app version .sh
Last active Feb 15, 2022
Xcode Shell Script to auto increase app version number without changing $(MARKETING_VERSION) from Info.plist file, only increases if archive succeeds.
View Pre-Post Bash Script to auto increase app version .sh
#!/bin/sh
#
# Irfan Anwar : Software Engineer @ the ENTERTAINER : iamirfan@live.com
#
# Auto increase app version in archive - Pre-action Script
# NOTE: Add Post-action Script given below with this Pre-action Script to make it functional.
# It increases first part of desimal version number e.g 1.0 -> 2.0, ofcourse you can modify the logic, like add more desimal number or increase tiny part or minor part, like 1.0.3 -> 1.0.4 or whatever if you are a smart developer :)
#
# USAGE: