A Mac App to find unused images and resources in Xcode project.
A Mac App to find unused images and resources in an Xcode project. It is heavily influenced by jeffhodnett‘s Unused, but Unused is very slow, and the results are not entirely correct. So I made some performance optimization, the search speed is more faster than Unused.
It’s an useful utility tool to check what resources are not being used in your Xcode projects. Very easy to use:
Browse..
to select a project folder.Search
to start searching.Check Ignore similar name
to ignore the resources which referenced by string concatenation, regex: ([-_]?\d+)
.
For example:
You import some resources like:
icon_tag_0.png
icon_tag_1.png
icon_tag_2.png
icon_tag_3.png
icon_title-0.png
icon_title-1.png
icon_title-2.png
icon_test0.png
icon_test1.png
icon_test2.png
And using in this way:
NSInteger index = random() % 4;
UIImage *img0 = [UIImage imageNamed:[NSString stringWithFormat:@"icon_tag_%d", index]];
// Or
UIImage *img1 = [self createImageWithPrefix:@"icon_title" concat:@"-" andIndex:index];
// Or
UIImage *img2 = [self createImageWithPrefix:@"icon_test" andIndex:index];
icon_tag_x.png
, icon_title-x
and icon_testx
will be considered to be used, should not be shown as unused resource.
[imageset, jpg, png, gif]
) in these folders [imageset, launchimage, appiconset, bundle, png]
.[h, m, mm, swift, xib, storyboard, strings, c, cpp, html, js, json, plist, css]
).Requires OS X 10.7 and above, ARC.