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

前端 未结 6 1257
日久生厌
日久生厌 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 05:06

    I ran into this problem yesterday, I reckon others in my situation will be too. So I am running a mac OS siera on a virtual machine on my windows so I can use xcode. Firstly you will need to update your version of ruby, it has been answered here: https://stackoverflow.com/a/38194139/7451779.

    Once updated this just run: $ sudo gem install cocoapods

    After all this $ pod init should work

提交回复
热议问题