Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods, fail to use pod setup and pod install

I have problem in setting up Cocoapods using command pod setup, with an error say SSLRead() fail. I have found a workaround in downloading the Specs of Cocoapods manually. However, when I need to install the library using command pod install in my project directory, problems regarding to SSL remains. The returns are as below:

Downloading dependencies
Installing AFNetworking (2.2.1)

[!] Error installing AFNetworking
[!] /usr/bin/git clone https://github.com/AFNetworking/AFNetworking.git/Users/DavisChung/Documents/Programming/Xcode\ Projects/TapBit/Pods/AFNetworking --single-branch --depth 1 --branch 2.2.1

Cloning into '/Users/DavisChung/Documents/Programming/Xcode Projects/TapBit/Pods/AFNetworking'...

fatal: unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Server aborted the SSL handshake

One for all, how can I resolve the problems regarding to SSL? My mac OS version is Yosemite 10.10.2 Thanks

like image 549
Davis Chung Avatar asked Feb 08 '15 09:02

Davis Chung


1 Answers

After having the same issue, I have realized that my network provider decides to randomly check if I am human. There might be another solution, but when running from terminal, There is no additional way to response. Therefore, the network provider is that one that might cause the issue.

To that my solution was to change network, then re-run pod install. The pods did updated once I did.

like image 130
Idan Avatar answered Sep 20 '22 12:09

Idan