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

前提是你 提交于 2020-04-30 07:35:38

问题


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?


回答1:


Seems like a temporary problem/glitch, have you tried again and is it working now?




回答2:


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!



来源:https://stackoverflow.com/questions/21678386/getting-a-403-response-when-trying-to-run-pod-setup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!