【问题标题】:How to fix Carthage the dependency graph contained a cycle?如何修复 Carthage 依赖图包含一个循环?
【发布时间】:2018-09-19 00:37:37
【问题描述】:

我在我的项目中使用 Carthage

购物车文件的内容:

#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

从输出判断,依赖中没有循环

如何解决?

【问题讨论】:

  • 我遇到了完全相同的问题,socket.io 也是如此。有什么解决办法吗?

标签: ios carthage


【解决方案1】:

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

【讨论】:

  • 是的,我在执行命令Carthage update ...之前也删除了文件夹Carthage和文件cartfile.resolved
猜你喜欢
  • 2016-12-14
  • 2011-03-23
  • 1970-01-01
  • 2012-02-19
  • 1970-01-01
  • 2019-12-03
  • 1970-01-01
  • 1970-01-01
  • 2022-01-17
相关资源
最近更新 更多