running pod set up gives me “bad interpreter: No such file or directory”

前端 未结 14 2284
野性不改
野性不改 2020-12-13 02:53

recently tried to do pod setup and i get this:

-bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directo         


        
14条回答
  •  清歌不尽
    2020-12-13 03:34

    While I'm trying to install again then I got another error saying that

    ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.

    Then I did this and worked fine.

    sudo gem uninstall cocoapods
    
    sudo gem install cocoapods
    

提交回复
热议问题