Git Product home page Git Product logo

ios-build-number-overlay's Introduction

iOS-Build-Number-Overlay

Overlay version and build numbers in your release builds.

This is a simple bash script usage demostration to auto tag your app icons with version and build number in the format like.

VersionNumber(BuildNumber)
ex: 1.0(2)

alt tag

Setting Up

This depends on the popular image processing library ImageMagick. You can use homebrew to install it. If you don't have homebrew installed have HomeBrew first.

Lets brew it.

brew install ImageMagick
brew install ghostscript

If anything go wrong. Try

brew doctor

Clone the repository and open build phases for your target. Wait a minute if you know what you are doing and lazy to clone here you got a gist for scripts. Overlay Gist

If you cloned it already. Let me explain you. You will see 2 run scripts at build phases. 1 before copy bundle resources build phase and one after.

Please select you shell properly. I'm using zsh thats make it /bin/zsh. Most probably it will be /bin/sh for you. Very important to change it.

If all set. When you archive project. It will change your AppIcons to have build and version number overlay on it. I made it only for release builds because when you debug it is not necessary to do this. When you do archive the build configuration will be Release. So the function get executed.

First script will take images from reference icon set and replace actual icons. Second script will increase the build number after a release is made. This prepare the build number for next release. Note that reference icon set AppIconReference.xcassets in not added to our target. Not to any target. Its whole purpose is to have original icons for us.

There are many ways to do this. You can also avoid having a reference icon set and directly convert icons to build product target. Play with it and adjust to your needs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.