Xcode更新后执行 git clone命令出错的问题

    xiaoxiao2023-03-24  3

    今天执行  

    git clone 命令的时候出错

    xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)

    是因为最近Xcode更新了版本

    解决办法就是:将Xcode的路径,重新设置一下。

    sudo xcode-select --switch “Xcode的path,直接在应用程序里面找到Xcode,拖拽到这里”

    回车 输入密码 ok

    转载请注明原文地址: https://ju.6miu.com/read-1201249.html
    最新回复(0)