A Mac App to
- find unused images and resources in an XCode project;
- find total images and resources in an XCode project;
- do LinkMap file analysis.
It is forked from tinymind/LSUnusedResources and bang590/linkmap.js, and add the function 2.&& 3. by me.
It's an useful utility tool to check what resources are not being used in your Xcode projects. Very easy to use:
- Click
Browse..
to select a project folder. - Click
Search
to start searching. - Wait a few seconds, the results will be shown in the tableview.
- click the "Total" radio button to show the total images/resources.
It also can do LinkMap file analysis when you :
- In XCode -> Project -> Build Settings -> search map -> set "Write Link Map File" to yes,and set the storage locaiton for linkMap;
- Build the project and find the XX-LinkMap-normal-XXX.txt in the path like:
/Users/XXX/Library/Developer/Xcode/DerivedData/XXXX-bcldsniprdstvaduhphplctoilfa/Build/Intermediates.noindex/XXXX.build/Debug-iphonesimulator/XXXX.build/XXXX-LinkMap-normal-x86_64.txt
- Fill the textField in the LinkMap panel with the path above;
- Click the "Analysis" button and wait to see the result in the below view.
- build and run the project using XCode.
- Get resource files (default:
[imageset, jpg, png, gif]
) in these folders[imageset, launchimage, appiconset, bundle, png]
. - Use regex to search all string names in code files (default:
[h, m, mm, swift, xib, storyboard, strings, c, cpp, html, js, json, plist, css]
). - Exclude all used string names from resources files, we get all unused resources files.
Requires OS X 10.7 and above, ARC.