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

后端 未结 23 1801
深忆病人
深忆病人 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:22

    I fixed the problem by using ruby 2.0 (which is the preferred way on mavericks) or greater. In case you are using rvm just change to the correct ruby with:

    rvm use ruby-2.0
    

    After that gem install cocoapods worked correctly. To be more specific, I was using:

    OSX 10.9.2
    ruby-2.0.0-p353
    cocoapods-0.32.1
    

提交回复
热议问题