OSX 10.8 xcrun (No such file or directory)

前端 未结 4 1811
醉梦人生
醉梦人生 2021-01-31 09:39

When executing gem install jekyll on OSX 10.8 with the standalone Command Line Tools package from Apple\'s Developer site installed (no Xcode), i run into the follo

4条回答
  •  無奈伤痛
    2021-01-31 10:29

    Type in these commands on the console:

    sudo xcode-select -switch /usr/bin
    sudo mv /usr/bin/xcrun /usr/bin/xcrun-orig
    sudo vim /usr/bin/xcrun
    

    Enter the following into your dummy xcrun file:

    #!/bin/sh
    $@
    

    Then make it executable:

    sudo chmod 755 /usr/bin/xcrun
    

提交回复
热议问题