“pod init” giving error “-bash: pod: command not found”

前端 未结 6 1231
日久生厌
日久生厌 2021-02-05 04:40

I am trying to create a Podfile for my Xcode project for Firebase compatibility, but when I try to create it within the same file that my Xcode project is stored in, using my te

6条回答
  •  失恋的感觉
    2021-02-05 04:58

    Got this error today. Was able to resolve it by making sure I had ruby in my PATH.

    export PATH=/usr/bin/ruby:$PATH
    

    Then (as suggested by answers above) run

    sudo gem install cocoapods
    

    Or

    sudo gem install -n /usr/local/bin cocoapods
    

提交回复
热议问题