Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone: Is there an automated way to identify unused resources?

As I've developed my app, I have imported and incorporated a lot of images, sounds, etc. I guess I could just write a shell script that greps the source code, but I'm wondering if there's an existing that will identify any unused resources in my project.

Thanks!

like image 479
John Avatar asked Jul 14 '09 03:07

John


1 Answers

No, and there can't be since there are ways in which resources may be used without any reference within the app source. The push notification service takes the name of a sound file in your app bundle for instance, so all sound files that are in formats usable for push notifications may not be unused even if there is no reference in the app itself. There are other similiar situations as well.

Obviously you can write some scripts to handle removing resource if you know what is going on, but I would never expect to see Xcode provide anything like this functionality.

like image 150
Louis Gerbarg Avatar answered Sep 20 '22 16:09

Louis Gerbarg