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

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

    for MACOS X Catalina

    Tried most of the answers but none worked. If the above doesn't work try Opening Xcode preferences > Locations > selecting Command Line Tools to Xcode. Then install cocoapods

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

提交回复
热议问题