UnusedResources is a simple command line tool for detact unused images in Xcode.
The project uses SwiftSyntax.
clone the repo and run make install
With that installed and on our bin
folder, now we can use it.
Just run the command passing the folder to your source files.
unused-resources /path/to/our/source/files/
mingdeMacBook-Pro:~ ming$ unused-resources /Users/ming/Desktop/UnusedResourcesTest
testPNG.png in /Users/ming/Desktop/UnusedResourcesTest/UnusedResourcesTest/Assets.xcassets/testPNG.imageset
testJPG.jpg in /Users/ming/Desktop/UnusedResourcesTest/UnusedResourcesTest/Assets.xcassets/testJPG.imageset
UnusedResources is released under the MIT License.