How to use it:
- Download this GIST.
- Extract it and move it inside to your XCode Project directory.
- Navigate to the folder in the terminal.
- Run the shell script (type "sh unusedImages.sh").
- The program outputs a list of images that it thinks are not used
You have to be careful because the program will give a false positive if the file names are generated dynamically. E.g.
NSString *imageName = [NSString stringWithFormat:@"image_%d.png", 1];
The program will say that "image_1.png" is unused. So be carful when the file name has a numeric suffix.