About a year ago I mentioned a handy tool allowing you to quickly identify unused images within your Xcode projects.
Here’s a handy Ruby Gem from Daniel Doubrovkine that allows you to very easily find unused class imports and allows you to delete those files. You can delete unused classes with a prompt so you can be certain that you’re not deleting anything important.
You can install the Gem with:
sudo gem install fui
And there is detailed help available:
fui --help
To delete all unused class files with a prompt use:
fui --path=~/source/project/Name delete --perform --prompt
You can find the FUI source code on Github here.
A handy little tool for cleaning up your project files.