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

前端 未结 14 2289
野性不改
野性不改 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:31

    The following worked for me:

    Select Command Line Tools in XCode.

        XCode > Preferences > Locations > Command Line Tools > XCode 11.X.X
    
    In terminal execute:
    
        sudo gem install cocoapods -n /usr/local/bin
    

    https://stackoverflow.com/a/60464653

提交回复
热议问题