onevcat / FengNiao

A command line tool for cleaning unused resources in Xcode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: product dependency 'CommandLineKit' not found

jeniva opened this issue · comments

执行./install.sh保存
localhost:FengNiao test01$ ./install.sh
error: product dependency 'CommandLineKit' not found
error: product dependency 'CommandLineKit' not found
cp: .build/release/FengNiao: No such file or directory
不知道要怎么解决

Not sure why. Maybe it worths to try a full clean or re-download the source.

屏幕快照 2019-07-01 10 22 36
我试过了re-download和clean都不行,是不是和swift版本有关系

Not sure why you provide a screenshot of Xcode.

Can you try to run the command below and paste the result if it fails?

git clone https://github.com/onevcat/FengNiao.git
cd FengNiao
./install.sh

I guess it should be find if you have at least Xcode 10 installed (and as the command line tool be in used.)

屏幕快照 2019-07-01 11 09 51
我有安装xcode9.2 和Xcode10.2,不过我目前主要使用的是Xcode9.2,看截图,目前送使用的 command line tool 应该是Xcode9.2下面的吧

嗯..换到 10 试试看吧...Xcode 9 的话有可能是不支持的,因为 Swift lang 大家都换到 4.2 了吧..

换成Xcode10成功了,谢谢,还想再咨询一下这个工具的原理是什么,我和开发确认了一下扫描出来的图片如果是静态的引用根据写死的图片路径是好检测的,根据图片名字在代码中检测是否引用。但是如果是动态的,比如图片名字是某个模块的用变量命名的是不是就漏检测了容易引起误删除?