Reputation: 4848
So I've started a new Xcode project and want to add cocoapods to it. I've successfully installed the gem but when I run
pod setup
I get the following:
Setting up CocoaPods master repo
[!] Pod::Executable pull
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/CocoaPods/Specs.git/info/refs
fatal: HTTP request failed
If I navigate to the address in question through my browser I can see the git repo without issue so can't figure out why it's rejecting it now?
Upvotes: 1
Views: 2655
Reputation: 40196
Although, I answered there still sharing here for further audiences,
‘403’ means access forbidden. Sometimes your credentials stored in machines become stale especially if you switch between multiple github accounts. Below solution might work,
Upvotes: 2
Reputation: 4848
The problem was that I was on an old version of git (1.6.x or something).
I also ran into trouble uninstalling git using the prescribed methods - I ended up needed to navigate to /usr/bin and removing git from there in order to install the latest version.
After that everything worked fine!
Upvotes: 0
Reputation: 1902
Seems like a temporary problem/glitch, have you tried again and is it working now?
Upvotes: 0