如何修复Carthage依赖图包含一个循环?

时间:2018-04-09 14:53:18

标签: ios carthage

我在项目中使用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

我的迦太基版本为0.29.0

根据输出判断依赖项中没有循环

如何解决这个问题?

1 个答案:

答案 0 :(得分:5)

我终于通过简单地删除Carthage文件夹并再次运行carthage update来重新构建