Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carthage: failed with exit code 1 #340

Closed
guidupas opened this issue May 3, 2019 · 5 comments
Closed

Carthage: failed with exit code 1 #340

guidupas opened this issue May 3, 2019 · 5 comments

Comments

@guidupas
Copy link

guidupas commented May 3, 2019

I am trying to get the framework using Carthage:

This is my Cartfile:

github "ashleymills/Reachability.swift"

and I am receiving this error message:

A shell task (/usr/bin/env git fetch --prune --quiet https://github.com/ashleymills/Reachability.swift.git refs/tags/:refs/tags/ +refs/heads/:refs/heads/ (launched in /var/root/Library/Caches/org.carthage.CarthageKit/dependencies/Reachability.swift)) failed with exit code 1

I am using Carhage 0.33.0 and Swift 5

Thanks in advance.

@nikGayko
Copy link

nikGayko commented May 15, 2019

The same error

@cliss
Copy link

cliss commented Jul 29, 2019

+1 on Carthage 0.33.0 and Xcode 11b4.

@cliss
Copy link

cliss commented Jul 29, 2019

Short short version

rm -rf ~/Library/Caches/org.carthage.CarthageKit

Long version

Looking at this further, I think I [somewhat] understand the problem.

The error message spells it out:

A shell task (/usr/bin/env git fetch --prune --quiet https://github.com/ashleymills/Reachability.swift.git refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/* (launched in /Users/casey/Library/Caches/org.carthage.CarthageKit/dependencies/Reachability.swift)) failed with exit code 1

I ran the command that seems to have failed sparately:

bash-3.2$ /usr/bin/env git fetch --prune --quiet https://github.com/ashleymills/Reachability.swift.git refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*

And got the following error message:

warning: no common commits

That made me think that there's some sort of cache mismatch between Carthage and what's on Github. Looking again at the original error message, I noted this:

(launched in /Users/casey/Library/Caches/org.carthage.CarthageKit/dependencies/Reachability.swift)

So I did the following:

rm -rf ~/Library/Caches/org.carthage.CarthageKit

And that seems to have fixed my problem.

@loganblevins
Copy link

🎉

@fllaryora
Copy link

Thank you Casey Liss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants