Carthage update fail with exit code 1 when upgrade MacOs and Xcode

After upgrade your OS and/or your Xcode.

When you run

$ carthage update --platform iOS --no-use-binaries

you would get an output like:

Fetching FooLibrary

A shell task (/usr/bin/env git fetch --prune --quiet https://github.com/foodeveloper/FooLibrary.git refs/tags/:refs/tags/ +refs/heads/:refs/heads/ (launched in /Users/yourUser/Library/Caches/foo.package/dependencies/FooLibrary)) failed with exit code 1

Upvotes: 2

Views: 3085

Answers (1)

This issue happen with Carthage 0.33.0 and Xcode 11.

To solve this issue:

First: Open your new Xcode and select the last CLI to make sure that you are using the last CLI.

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

Second: Please You could fix it by deleting the cache of Carthage: rm -rf ~/Library/Caches/org.carthage.CarthageKit source: https://github.com/ashleymills/Reachability.swift/issues/340

Upvotes: 8

Related Questions