A curated list of useful Xcode scripts π.
- Open Xcode project. Select your target
- Build Phases -> Add Build Phase -> Add Run Script Build Phase
- Open "Run Script" section that was created and .
- Copy & Paste your script there.
- (Optional) Rename your Run Scripts to identify them easily.
- BuildVersion.sh - A script that runs each time you build your app in Xcode to read the Build number, increment it, and write it back to the app's
{App}-Info.plist
file.
- BuildNumberOnGitCommit.sh - A script that runs each time you commit your app to git, the Build number gets incremented.
CAUTION
Use this only if you are pushing you code to git.
- VersionNumberIncrement.sh - Auto-increment the version number (only) when a project is archived for export.
CAUTION
Insure your starting version number is in SemVer format (e.g. 1.0.0)
- IconVersioning.sh - Overlay the iOS application version on top of the icon.
- Download the zip or clone the repo to your desired directory.
$ git clone https://github.com/aashishtamsya/awesome-xcode-scripts.git
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request π π
Aashish Tamsya @ChiefAashish, [email protected]
The content of Awesome Xcode Scripts itself is licensed under the Creative Commons Attribution 3.0 license, and the underlying source code used to format and display that content is licensed under the MIT license.
See the LICENSE file for more info.