Unable to install cocoa pods

后端 未结 3 1775
一整个雨季
一整个雨季 2021-01-17 15:13

I want to install cocoapods on MacOS to run the pod command. But on doing

sudo gem install cocoa-pods

I get the following:

Bui         


        
3条回答
  •  一生所求
    2021-01-17 15:48

    I had a similar issue. I solved by installing the latest version of ruby (2.7.2).

    First install the Ruby Version Manager rvm:

    curl -L https://get.rvm.io | bash -s stable
    

    Then install the latest version of ruby:

    rvm install ruby-2.7.2
    

    Finally try again to install the cocoapods:

    sudo gem install cocoapods
    

提交回复
热议问题