升级操作系统和/或Xcode后。
运行时
$ carthage update --platform iOS --no-use-binaries
您将得到类似的输出:
获取FooLibraryShell任务(/ usr / bin / env git fetch --prune --quiethttps://github.com/foodeveloper/FooLibrary.gitrefs / tags / :refs / tags / + refs / heads / :refs / heads /(启动/Users/yourUser/Library/Caches/foo.package/dependencies/FooLibrary中的代码))失败,退出代码为1
我写下了一个希望可以帮助您的解决方案。
要解决此问题:首先:打开新的Xcode并选择最后一个CLI,以确保您使用的是最后一个CLI。
[第二:请通过删除迦太基的缓存来解决它:rm -rf〜/ Library / Caches / org.carthage.CarthageKit来源:https://github.com/ashleymills/Reachability.swift/issues/340
谢谢。我希望这可以帮助某人。