Error connecting with cocoapods. Proxy connection CONNECT interrupted

I have a problem installing cocacopods. I did the following steps in terminal:

~ update sudo gem --system

~ sudo gem install cocoapods

and after

~ pod setup

I have this error message

MacBook-Pro-Aleksandr:~ aleksandrkarpov$ pod setup
Setting up CocoaPods master repo
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1

Cloning into 'master'...

fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': Proxy CONNECT aborted

      

I used to work with cocoapods and everything was fine. In this case, I don't know what to do. Can anyone help me please?

+3


source to share


1 answer


I found a solution here .

I only wrote in the terminal:



git config --global http.proxy
git config --global --unset http.proxy

      

and it solved my problem.

+4


source







All Articles