Hate to create a bunch of app icon files with different sizes and drag them one by one into asset catalog? Then this might be helpful for you.
xcassets-filler fills an xcassets bundle (Xcode Asset Catalog) with one image or a solid color.
brew install imagemagick
Have a Xcode project with iOS7+ SDK. Make sure there is an asset catalog (Images.xcassets) with image sets in it, and in the image set, all the required options are selected. And make sure that in the targe->general settings, the app icons and launch images are pointed to the right sources.
prepare.rb <path of a big square icon file> <AppIcon.appiconset path>
e.g.
prepare.rb ~/project/path/Images.xcassets/AppIcon.appiconset ~/Downloads/icon1024x1024.png
Note: the iTunesArtwork files that are going to be used by iTunesConnect/App Store will also be saved in the folder where Images.xcassets is located.
prepare.rb <LaunchImage.launchimage path> \#<hex color code>
e.g.
prepare.rb ~/project/path/Images.xcassets/LaunchImage.launchimage \#111111
prepare.rb ~/project/path/Images.xcassets/LaunchImage.launchimage 1024x768.jpg 768x1024.jpg 320x480.png
Note: unlike appiconset, this image set doesn't provide sizes. So we use a map to determine the sizes. So from time to time we may need to update launch_image_size_map