0

I am trying to install pod in my Xcode 9.2 project but when i enter command

sudo gem install cocoapods

it gives me the following error.

ERROR:  Could not find a valid gem 'cocoapods' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (https://rubygems.org/latest_specs.4.8.gz)

After some research on google i found out that my opensssl version is old due to which this error is coming. But i am unable to find any perfect solutions for this error.I hope some other people also must have came across this issue.

1 Answers1

1

Ok i found the solution i installed homebrew and then i followed the procedure of installing cocoapods after that.