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

查看:457
本文介绍了macOS 10.14(测试版)如何安装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.

我做了什么:

  1. 运行命令"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/

  1. 在终端中以运行命令"xcode-select --install" @Dev的第二个答案,但是在"brew install carthage"之后仍然出现相同的错误;
  1. run command "xcode-select --install" in Terminal as the second answer from @Dev, but I still get the same errors after "brew install carthage";

  1. Apple网站下载.dmg文件,我打开后得到的工具太多它:
  1. 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆