Using Xcode, ImageMagick and shell-scripting, this tutorial demonstrates how to generate app icons at build time based on the current build configuration.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/105641/change-app-icon-build-time