Nathan Lampi

XCode Find Unused Images Search

UnusedImages is a little shell script I created to help me track down and remove unused images in large projects that have started to become unwieldy. I have also found this useful for tracking down where images are being used if I want to remove them while making sure that there are no leftover references to the image.

Script Details

Run this script from the root of the XCode project. This will search .xib, .h, .m, and .plist files for any reference to images in the project.

USAGE: unused_images [OPTIONS]

EXAMPLE: ~/scripts/unused_images.sh --debug -o=output.txt

OPTIONS:
-o --output : Use this to output to file. Optionally specify filename
--debug : Prints out debug info
-h --help : Print out help info.

The complete script can be found on github.

© Lampi.dev 2011 - 2022