Search code examples
xcodegitcocoapods

Getting a 403 response when trying to run 'pod setup'


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?


Solution

  • 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!