12
Watch
174
Star
48
Fork
3
Issue

Some useful utilities to help iOS development

arunx2
arunx2
pushedAt 7 years ago

arunx2/xcodeutils

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
ucloud ads