ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension

后端 未结 23 1760
深忆病人
深忆病人 2020-12-04 19:06

I am trying to install cocoapods to my MacBook Pro running with OSX 10.9.1 (new Mavericks) and after type gem install cocoapods I get the following error:

23条回答
  •  既然无缘
    2020-12-04 19:18

    My way to solved:

    First of all, i have new mac os 10.15.7 and Xcode

    None of previous solutions worked for me too

    I note that pods install in Library 2.6.0 and decided that it needs to be updated:

    step 1

    \curl -sSL https://get.rvm.io | bash -s stable --ruby
    

    Ok!

    Then i checked version: 2.6.0 - Why? In last string after install ruby, i noticed:

    • To start using RVM you need to run source /Users/abazhanov/.rvm/scripts/rvm in all your open shell windows, in rare cases you need to reopen all shell windows.

    ok, let's do it:

    step 2

    source /Users/abazhanov/.rvm/scripts/rvm
    

    Then i checked version: 2.7.0 - its ok!

    step 3

    sudo gem install cocoapods 
    

    As a result: 34 gems installed

    I understand that the new version of Pods simply did not install on the old version of Ruby

提交回复
热议问题