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/1716-how-to-change-your-app-icon-at-build-time