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.
The same error
+1 on Carthage 0.33.0
and Xcode 11b4.
rm -rf ~/Library/Caches/org.carthage.CarthageKit
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.
馃帀
Thank you Casey Liss
Most helpful comment
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:
I ran the command that seems to have failed sparately:
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.