全站数据
8 4 2 0 5 8 1

xcode select有什么用

英语时代 | 简单学习,快乐成才!         
问题更新日期:2024-10-15 23:48:17

问题描述

xcode select有什么用希望能解答下
精选答案
最佳答案

xcode-select

当安装多个xcode的版本,使用该工具使用指定的版本。

Print or change the path to the active developer directory. This directory

controls which tools are used for the Xcode command line tools (for example,

xcodebuild) as well as the BSD development commands (such as cc and make).

-p 或者 --print-path 查看当前开发者目录,也即是xcode的版本目录。print the path of the active developer directory

-s <path> 或 --switch <path> 选择xcode的版本

--install 安装

--version 查看版本

--reset 恢复默认

sudo rm -rf /Library/Developer/CommandLineTools 强制删除安装目录下的文件