运行git,投诉可执行文件至少需要macOS 10.13。有解决方法吗?

时间:2018-04-26 11:37:43

标签: xcode git macos

最近我安装了xcode 9.3(从9.1开始)。安装后投诉

You have macOS 12.06.2. This application requires macOs 10.13.2 or later

所以我对此感到满意,并计划让管理员在可用时进行更新。但是当我尝试运行git时,它也会投诉

Executable requires at least macOS 10.13, but is being run on macOS 10.12.6, and so is exiting.git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

让我的机器升级到下一版本的macOS将是一段时间。有没有一种解决方法,我可以在不升级操作系统的情况下运行git

1 个答案:

答案 0 :(得分:0)

我只是从应用程序中完全删除xcode,现在我的git再次像魅力一样工作。