git下载时Xcode版本不一致的解决方法

来源:互联网 发布:爱知世博会 编辑:程序博客网 时间:2024/06/14 00:10

报错:

xcrun: error: active developer path ("/Applications/Xcode 2.app/Contents/Developer") does not exist, use `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`)


方法:

 sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer



0 0
原创粉丝点击