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

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

    Alright,

    I had the same issue. Tried to install pods to my project but never worked out. I updated Xcode, Updated Command Line tools, reinstalled cocoapods... almost everything.

    Sitting on my ass , writing pod in terminal showed up a screen listing available commands.

    I read all of them and noticed the command

    pod setup
    

    which does

    + setup               Setup the CocoaPods environment
    

    After this line of code, my problem was fixed.

    I hope my solution help other people in trouble like me.

提交回复
热议问题