Install the two dependencies, ImageMagick and Ghostscript.
$ brew install imagemagick
$ brew install ghostscriptInclude the tag_icons.sh script in a scripts/ directory in your iOS app project root.
Ensure the file is executable by running $ chmod +x scripts/tag_icons.sh.
Add one build phase before the Copy Bundle Resources phase :
if [ $CONFIGURATION != "Release" ] ; then
${SRCROOT}/scripts/tag_icons.sh tag YourApp/Images.xcassets/AppIcon.appiconset
fiAnd another build phase at the very end, that restore the original icon files
if [ $CONFIGURATION != "Release" ] ; then
${SRCROOT}/scripts/tag_icons.sh cleanup YourApp/Images.xcassets/AppIcon.appiconset
fi