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

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

    I was having the same exact problem, although I had the latest version of the xcode command-line tools.

    If you have homebrew installed, do brew install apple-gcc42. This immediately solved it for me.

提交回复
热议问题