Awesome Xcode Scripts
A curated list of useful Xcode scripts
Content
How to Setup
- 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.
Scripts
Build Number Auto-Increment Script
- 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.
Build Number Auto-Increment Script on Git Commit
- 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.
Semantic Version Auto-Increment Script
- 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)
AppIcon Versioning Auto-Increment Script
- IconVersioning.sh - Overlay the iOS application version on top of the icon.
Detect FixMe ToDo Error Tag On Swift Script
Installation
- Download the zip or clone the repo to your desired directory.
$ git clone https://github.com/aashishtamsya/awesome-xcode-scripts.git
Contributing
- 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
π π
Credits
Aashish Tamsya @ChiefAashish, [email protected]
License
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.