Skip to content

Instantly share code, notes, and snippets.

@michaelpeternell
Last active August 29, 2015 14:00
Show Gist options
  • Save michaelpeternell/11211085 to your computer and use it in GitHub Desktop.
Save michaelpeternell/11211085 to your computer and use it in GitHub Desktop.
XCode build script for iOS Apps to generate all sizes of app icons from one 1024*1024 master app icon
# Generate all icon files from Icon_1024.png
#smaller app store icon
sips --resampleWidth 512 Icon_1024.png --out Icon_512.png
#iphone icons
sips --resampleWidth 114 Icon_1024.png --out Icon\@2x.png
sips --resampleWidth 57 Icon_1024.png --out Icon.png
#ipad icons
sips --resampleWidth 144 Icon_1024.png --out Icon-72\@2x.png
sips --resampleWidth 72 Icon_1024.png --out Icon-72.png
#iphone 3GS loading screen
sips --resampleWidth 320 Template/Default\@2x.png --out Template/Default.png
#ipad non-retina loading screen
sips --resampleWidth 768 Default-Portrait\@2x~ipad.png --out Default-Portrait~ipad.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment