
Adding the binary to the project directory makes sure is is available to anyone building the project on any system.īuild rules are Target specific, so if you have more than one target you must copy the rule into each.Īdd DEBUG and DISTRIBUTION macros to your build configurations.

Copy the binary command-line application pngout to a directory with in your project.There are several tools for optimising PNG files, but pngout seems to be the best option. However you don't want to loose all that data completely as it's useful to designers if they need to alter the image. When your designer created these images in Photoshop they are saved with a lot of meta data that can be discarded. The best type of image to use in an iOS App is a PNG. This is especially true if it is a Universal App requiring it to have all image in triplicate (iPhone Standard, iPhone Retina iPad). Images in an iOS App can make up the majority of it size. Adding an Xcode Build Rule to compress PNGs
