The problem is that Xcode Command-line Tools needs to be updated.
(问题是Xcode命令行工具需要更新。)
Go back to your terminal and hit:
(返回您的终端并点击:)
xcode-select --install
You'll then receive:
(然后,您将收到:)
xcode-select: note: install requested for command line developer tools
You will be prompted at this point in a window to update Xcode Command Line tools.
(此时将在窗口中提示您更新Xcode命令行工具。)
(which may take a while) ((可能需要一段时间))
open a new terminal window and your development tools should be returned.
(打开一个新的终端窗口,应该返回您的开发工具。)
Addition: With any major or semi-major update you'll need to update the command line tools in order to get them functioning properly again.
(另外:使用任何主要或半主要更新,您都需要更新命令行工具,以使它们再次正常运行。)
Check Xcode with any update. (检查Xcode是否有任何更新。)
This goes beyond Mojave... (这超越了莫哈韦沙漠...)
After that restart your terminal
(之后,重启终端)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…