Problem with cocoapods

0

I have installed cocoapods, but when installing the pods in my project, I get the following error:

Albertos-Mac:Proyecto1 alberto$ pod setup
Setting up CocoaPods master repo
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

This appears to me after about 15 minutes or more that stays like this:

Albertos-Mac:Proyecto1 alberto$ pod install
Re-creating CocoaPods due to major version update.
Setting up CocoaPods master repo

EDITED

When uninstalling everything and reinstalling it, I get this error:

Albertos-Mac:Users alberto$ sudo gem install cocoapods
Fetching: cocoapods-core-1.0.1.gem (100%)
Successfully installed cocoapods-core-1.0.1
Fetching: cocoapods-downloader-1.1.0.gem (100%)
Successfully installed cocoapods-downloader-1.1.0
Fetching: cocoapods-1.0.1.gem (100%)
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/pod
Albertos-Mac:Users alberto$ 

And if I try to do a setup pod afterwards, this appears:

Albertos-Mac:Users alberto$ sudo gem install cocoapods
Fetching: cocoapods-core-1.0.1.gem (100%)
Successfully installed cocoapods-core-1.0.1
Fetching: cocoapods-downloader-1.1.0.gem (100%)
Successfully installed cocoapods-downloader-1.1.0
Fetching: cocoapods-1.0.1.gem (100%)
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/pod
Albertos-Mac:Users alberto$ 

Any solution? Thanks

    
asked by 20.07.2016 в 11:59
source

1 answer

0

First of all uninstall CocoaPods :

sudo gem uninstall cocoapods
sudo gem uninstall cocoapods-core
sudo gem uninstall cocoapods-downloader

And then reinstall it with:

sudo gem install cocoapods

Almost certainly the problem is not to use sudo .

Once finished, you can now do pod install or pod update normally.

UPDATE 1

If the error appears after uninstalling Cocoapods , you have to reinstall it as follows:

sudo gem install -n /usr/local/bin cocoapods
    
answered by 20.07.2016 / 12:07
source