pod install -bash: pod: command not found

后端 未结 21 2797
野的像风
野的像风 2020-11-28 19:06

I installed pod some time ago. However, it\'s stopped working so I\'m working through this again.

However, I almost immediately run into a problem here:

21条回答
  •  清歌不尽
    2020-11-28 19:47

    Installing CocoaPods on OS X 10.11

    These instructions were tested on all betas and the final release of El Capitan.

    Custom GEM_HOME

    This is the solution when you are receiving above error

    $ mkdir -p $HOME/Software/ruby
    $ export GEM_HOME=$HOME/Software/ruby
    $ gem install cocoapods
    [...]
    1 gem installed
    $ export PATH=$PATH:$HOME/Software/ruby/bin
    $ pod --version
    0.38.2
    

提交回复
热议问题