尝试运行“ pod设置”时收到403响应 [英] Getting a 403 response when trying to run 'pod setup'

查看:318
本文介绍了尝试运行“ pod设置”时收到403响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我开始了一个新的Xcode项目,并希望向其中添加可可足类。我已经成功安装了gem,但是当我运行

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

我得到以下信息:

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

如果我通过导航到有问题的地址在我的浏览器中,我可以看到git repo没有问题,因此无法弄清楚为什么现在拒绝它?

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?

推荐答案

问题是我使用的是旧版本的git(1.6.x或更高版本)。

The problem was that I was on an old version of git (1.6.x or something).

我也遇到了使用规定方法卸载git的麻烦-我最终需要导航到/ usr / bin并从那里删除git以便安装最新版本。

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.

之后一切正常!

这篇关于尝试运行“ pod设置”时收到403响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆