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

As I developed my application, I imported and included many images, sounds, etc. I think I could just write a shell script that obscures the source code, but I wonder which one will identify any unused resources in my project.

Thanks!

+5
source share
1 answer

No, and it cannot be, because there are ways in which resources can be used without any links in the application source. The push notification service, for example, uses the name of the sound file in your application bundle, so all sound files that are in formats suitable for push notifications may not be used, even if there is no link in the application itself. There are other similar situations.

Obviously, you can write some scripts to handle resource deletion if you know what is happening, but I never expected to see that Xcode provides something like this function.

+3
source

All Articles