我正在尝试使用 Carthage 获取框架:
这是我的购物车文件:
github "ashleymills/Reachability.swift"
我收到此错误消息:
一个 shell 任务(/usr/bin/env git fetch --prune --quiet https://github.com/ashleymills/Reachability.swift.git refs/tags/ :refs/tags/ +refs/heads/ :refs/ head/ (在 /var/root/Library/Caches/org.carthage.CarthageKit/dependencies/Reachability.swift 中启动)失败,退出代码为 1
我正在使用 Carhage 0.33.0 和 Swift 5
提前致谢。
同样的错误
在迦太基0.33.0
和 Xcode 11b4 上 +1。
rm -rf ~/Library/Caches/org.carthage.CarthageKit
进一步看这个,我想我[有点]理解这个问题。
错误消息说明:
A shell task (/usr/bin/env git fetch --prune --quiet https://github.com/ashleymills/Reachability.swift.git refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/* (launched in /Users/casey/Library/Caches/org.carthage.CarthageKit/dependencies/Reachability.swift)) failed with exit code 1
我运行了似乎失败的命令:
bash-3.2$ /usr/bin/env git fetch --prune --quiet https://github.com/ashleymills/Reachability.swift.git refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*
并收到以下错误消息:
warning: no common commits
这让我觉得 Carthage 和 Github 上的内容之间存在某种缓存不匹配。 再次查看原始错误消息,我注意到了这一点:
(launched in /Users/casey/Library/Caches/org.carthage.CarthageKit/dependencies/Reachability.swift)
所以我做了以下事情:
rm -rf ~/Library/Caches/org.carthage.CarthageKit
这似乎解决了我的问题。
🎉
谢谢凯西·利斯
最有用的评论
短版
rm -rf ~/Library/Caches/org.carthage.CarthageKit
长版
进一步看这个,我想我[有点]理解这个问题。
错误消息说明:
我运行了似乎失败的命令:
并收到以下错误消息:
warning: no common commits
这让我觉得 Carthage 和 Github 上的内容之间存在某种缓存不匹配。 再次查看原始错误消息,我注意到了这一点:
(launched in /Users/casey/Library/Caches/org.carthage.CarthageKit/dependencies/Reachability.swift)
所以我做了以下事情:
rm -rf ~/Library/Caches/org.carthage.CarthageKit
这似乎解决了我的问题。