onevcat / FengNiao

A command line tool for cleaning unused resources in Xcode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift 5.0 suport

MrBugDou opened this issue · comments

image

喵神您好,我打开项目源码,发现无法编译通过,原因是:
CommandLineKit、CommandLinePackageDescription、PathKit
这三个库使用的时 Swift 3
image
导致此插件无法通过编译,希望您能帮助我解决这个问题,谢谢。
对了,我的Xcode版本yi以及macOS系统版本如下
image
image

Not sure why but I can build it without problem :(

Snip20190520_3

swift --version
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
Target: x86_64-apple-darwin18.5.0

The only difference I noticed is that my CommandLine was resolved to 4.0.9, but yours is 4.0.4. I guess it causes the problem.

是这样的哈,我目前电脑上安装了一个4.1的包,然后,执行这两个命令结果是不一样的
image
至于您说的CommandLine版本解析的话我应该怎么去处理一下呢?还请喵神指点

image
我刚刚重新安装了5.0.1,重新尝试后依然是出现了之前的错误,我在设想是否因为您的Mac之前存在缓存,因此您的电脑是可以正常编译通过的。

Can you show the content of your Package.resolved file? The CommandLine project already changed its Swift version in this commit. And it should be already contained in current version (4.0.9).

非常感谢,我在重新下载代码以后,安装成功了,谢谢喵神。