升级MacO和Xcode时,迦太基更新失败,退出代码为1

问题描述 投票:0回答:1

升级操作系统和/或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

我写下了一个希望可以帮助您的解决方案。

swift xcode carthage
1个回答
0
投票
此问题在Carthage 0.33.0和Xcode 11中发生。

要解决此问题:首先:打开新的Xcode并选择最后一个CLI,以确保您使用的是最后一个CLI。

Command Line Tool - Error - xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH

[第二:请通过删除迦太基的缓存来解决它:rm -rf〜/ Library / Caches / org.carthage.CarthageKit来源:https://github.com/ashleymills/Reachability.swift/issues/340

谢谢。我希望这可以帮助某人。

© www.soinside.com 2019 - 2024. All rights reserved.