Cocoapods Intall ERROR: when executing gem (TypeError)

I have a problem when I try to install gem cocoapods on a Mac. When I typed:

$ sudo gem install cocoapods

on the terminal, it shows an error:

ERROR:  While executing gem ... (TypeError)
        no implicit conversion of nil into String

How to install cocapods macro on Mac?

+4
source share
2 answers

Fortunately, I solved this by checking this Update to rubygems 2.5.x breaks the future up / down

According to what Segiddins said, this problem may be a bug in the old version fixed in RubyGems 2.6.2, just try updating your gems to RubyGems 2.6.2 .

+2
source

I got the same error too. Try the command below

sudo gem install -n /usr/local/bin cocoapods

, .

0

Source: https://habr.com/ru/post/1651869/


All Articles