
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
fastlane-plugin-icon_versioning
Advanced tools
This project is a fastlane plugin. To get started with fastlane-plugin-icon_versioning
, add it to your project by running:
fastlane add_plugin icon_versioning
Overlay build information on top of your app icon. Based on original work by Krzysztof Zabłocki (https://github.com/krzysztofzablocki/Bootstrap).
Over the original implementation by Krzysztof, I also added:
This copies the specified .appiconset
folder to a new folder named OriginalName-Versioned.appiconset
and overlays the specified text
over the icon images inside it.
To automatically run this on every build, you can add a new Run Script
Build Phase
before the Compile Sources
one and point it to a script that calls this plugin:
(Having a script file instead of the actual plugin call makes it easier to debug, change and review it, as explained in this article)
#!/usr/bin/env bash
# optional, to prevent versioning for release builds
if [[ $CONFIGURATION == "Release" ]]; then
exit 0
fi
# optional, to fix fastlane warnings that show up in the Report navigator
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# make sure Bundler is found
export GEM_HOME=~/.gems
export PATH=$PATH:$GEM_HOME/bin
export FASTLANE_DISABLE_COLORS=1 # optional, to remove from the build log the ANSI escape sequences that enables colors in terminal
export FASTLANE_SKIP_UPDATE_CHECK=1 # optional, to make sure that the versioning finishes as fast as possible in case there is an available update
export FASTLANE_HIDE_GITHUB_ISSUES=1 # optional, to make sure that the versioning finishes as fast as possible in case the plugin crashes
bundle exec fastlane run version_icon appiconset_path:'/path/to/AppIcon.appiconset' text:'1.2.3 (11.03.2018)\n[ead76f1] {Staging}\nmaster'
Make sure the script is executable by running chmod +x /scripts/icon_versioning.sh
In order for the new versioned icon to be actually used by the app, you have to point the Asset Catalog App Icon Set Name
(ASSETCATALOG_COMPILER_APPICON_NAME
) build setting to this new versioned one:
Lastly, you should ignore the -Versioned
folders using:
/path/to/*-Versioned.appiconset/*
If running it automatically on every build is not what you need, you can also call it from wherever you want, as long as you specify the correct parameters.
In the end, it should look like this:
Check out the example Fastfile
to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins
and bundle exec fastlane test
.
You can also check out the example Xcode project to see it in action, and all the required changes here.
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.
FAQs
Unknown package
We found that fastlane-plugin-icon_versioning demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.