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
@dulaccc how do you deal with build failures? Not a huge deal, but if you build fails and you don't complete a successful build it's really easy to accidently checkin the modified asset