Has anyone a one-line to find unused images in an Xcode project? (Assuming all the files are referenced by name in code or the project files - no code generated file names.)
I wrote a lua script, I'm not sure I can share it because I did it at work, but it works well. Basically it does this:
Step one- static image references (the easy bit, covered by the other answers)
Step two- dynamic image references (the fun bit)
Then deletes whatever it didn't find in either search.
The edge case is that image names that come from a server aren't handled. To handle this we include the server code in this search.