macOS 10.14(测试版)如何安装Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta [英] macOS 10.14(beta) How to install Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta
问题描述
作为我的问题的标题,我不知道如何为Mac安装Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta,请帮忙.
As the Title of my question, I don't know how to install the Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta for my mac, please help.
我做了什么:
- 运行命令"brew install carthage"以安装迦太基,并获取错误:
错误:您的Xcode(9.4.1)太过时了. 请更新到Xcode 10.0(或删除它). Xcode可以从更新 https://developer.apple.com/download/more/
Error: Your Xcode (9.4.1) is too outdated. Please update to Xcode 10.0 (or delete it). Xcode can be updated from https://developer.apple.com/download/more/
- 在终端中以运行命令"xcode-select --install" @Dev的第二个答案,但是在"brew install carthage"之后仍然出现相同的错误;
- run command "xcode-select --install" in Terminal as the second answer from @Dev, but I still get the same errors after "brew install carthage";
- 从 Apple网站下载.dmg文件,我打开后得到的工具太多它:
- download the .dmg file from Apple site, I got too many tools after I opened it:
我尝试安装两个.pkg,在所附的图像中用红色矩形标记,但是错误仍然存在.
I've tried install the two .pkg which marked with red rectangle in the attached image, but the error still coming.
环境:
macOS 10.14 Beta
Xcode(Installed 2 versions on the Mac):
10 (Beta),
9.4.1
推荐答案
似乎您的计算机上安装了两个版本的xcode. 首先通过运行以下命令选择最新版本的xcode:
It looks like you have two versions of the xcode installed on your machine. First select the latest version of the xcode by running this command:
sudo xcode-select -switch <path/to/>Xcode.app
完成此操作后,安装所需的命令行工具,但运行以下命令:
Once this is done, install the required command line tools but running this command:
xcode-select --install
这篇关于macOS 10.14(测试版)如何安装Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!