Find unused Objective-C imports.
gem install fui
fui help
fui find
The find
command lists all the files that contain unused imports and exits with the number of files found.
fui --path=~/source/project/Name find
ForRunning fui
with -x
(or --ignore-xib-files
) will, for example, mark Foo.h
as unused when Foo.xib
holds a reference to the Foo
class and no other references to Foo.h exist.
fui -x --path=~/source/project/Name find
For Running fui
with -l
(or --ignore-local-imports
) will, for example, mark Foo.h
as unused when Bar.h
contains a local import of Foo.h
(#import Foo.h
)
fui -l --path=~/source/project/Name find
For Running fui
with -g
(or --ignore-global-imports
) will, for example, mark Foo.h
as unused when Bar.h
contains a global import of Foo.h
(#import <Framework/Foo.h>
)
fui -g --path=~/source/project/Name find
fui --path=~/source/project/Name delete --perform --prompt
Use xcfui for integration with Xcode.
There're a few feature requests and known issues. Please contribute! See CONTRIBUTING.
Copyright (c) 2014-2018, Daniel Doubrovkine, Artsy, based on code by Dustin Barker.
This project is licensed under the MIT License.