Use fui (Find Unused Imports) scanning project without classes

In order to speed up APP, without the need for regular cleaning class
fui (Find Unused Imports) is an open source project can be a good analysis of the class is no longer used, the accuracy rate is very high, the only problem is that it can not deal with dynamic and static libraries Curry offers classes, we can not handle C ++ class templates.

Use is in Terminal cd into the directory where the project, and then execute fui find, then wait a few minutes then (take several minutes or even take longer), you can get a list of.
Since this tool is not 100% reliable, according to this list in Xcode to manually check and remove no longer used in class.

fui the github link
use

//安装 fui 工具 在终端中执行命令
sudo gem install fui -n /usr/local/bin

fui usage: https://github.com/dblock/fui

到工程目录下,执行 fui find 命令,可以找出所有的没有用到的class文件 

 


Transfer: https: //www.jianshu.com/p/f7954d1294ff

Guess you like

Origin www.cnblogs.com/huangzs/p/10986142.html