首页 > 解决方案 > 运行 git,投诉 Executable 至少需要 macOS 10.13。有解决方法吗?

问题描述

最近我安装了 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不升级操作系统的情况下运行?

标签: xcodegitmacos

解决方案


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


推荐阅读