如何修复Carthage依赖图中包含循环的问题?

9

我在我的项目中使用Carthage

Cartfile的内容:

#socket.io-client
github "socketio/socket.io-client-swift" ~> 13.1.0

Cartfile.resolved的内容

github "daltoniam/Starscream" "3.0.5"
github "socketio/socket.io-client-swift" "v13.1.3"

当我运行carthage update --platform ios时。
I get the following output:
*** Fetching socket.io-client-swift
*** Fetching Starscream
*** Checking out socket.io-client-swift at "v13.1.3"
*** Checking out Starscream at "3.0.5"
*** xcodebuild output can be found in ...
The dependency graph contained a cycle:
socket.io-client-swift: Starscream
Starscream: zlib-spm, common-crypto-spm

我的Carthage版本是0.29.0

从输出中看,依赖关系中没有循环

如何解决这个问题?


我遇到了完全相同的问题,也是在使用socket.io时。有什么解决方法吗? - Darren
2个回答

20

我最终通过简单地删除Carthage文件夹并再次运行carthage update来使它再次构建。


1
是的,在执行命令“Carthage update ...”之前,我删除了文件夹“Carthage”和文件“cartfile.resolved”。 - Bruno

0

对我来说,除了删除Carthage文件夹之外,还有删除Carthage的缓存也很有帮助:

$ rm -rf ./Carthage
$ rm -rf ~/Library/Caches/org.carthage.CarthageKit

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接