/xcodeutils

Some useful utilities to help iOS development

Primary LanguageShell

xcodeutils

Some useful utilities to help iOS development

find-unused-resource.sh

A small utility which generates a report of unused resources ( .gif, .jpg, .png, .jpeg) in the xcode project. Searches all the source folders( .h, .m) and user interface definitions (.xib, .nib ، .storyboard). This will generate a list of candidates for cleaning up.

We now support gif,jpg,png,jpeg image File. We now support .storyboard file

False positives:

  • Since project.pbxproj is not scaned, there might be false positives on the splash screens used in the project definition.
  • If any resources used runtime in the code like "image_%d", 1 image_1.png is a false positive.

How to use

$>sh ./find-unused-resources.sh path-to-project > report-name

ex: find-unused-resources.sh ~/myproject > unused.html