Xcode 更改默认版本

我们的Xcode使用版本可以根据Xcode > Preferences > Locations路径查看到正在使用的版本和该版本路径。

我们本文介绍的是在终端使用xcode-select命令 根据需求修改使用的Xcode版本。

在终端xcode-select可使用的命令如下: 

1. xcode-select [-h, –help] 

2. xcode-select [-p, –print-path] 

3. xcode-select [-s , –switch ] 

4. xcode-select [-v, –version] 

5. xcode-select [-r, –reset ]

查看xcode-select可使用命令,使用如下命令

xcode-select -h 

or

xcode-select --help

查看当前正在使用的Xcode版本路径,使用如下命令

xcode-select -p 

or

xcode-select --print-path

查看xcode-select版本

xcode-select -v 

or

xcode-select --version

重置为默认的command line tools path

xcode-select -r 

or

xcode-select -reset

修改Xcode使用版本 

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer 

or 

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

本文转载 http://blog.sina.com.cn/s/blog_605409770102uwxc.html

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,755评论 19 139
  • 小小的发一下小牢骚,就因为这个小问题浪费的一天多时间,不是我自己的问题,最后还是解决了,分享给小伙伴们,希望对你们...
    KYM1988阅读 13,080评论 2 0
  • 【转载】曾梦想仗剑走天涯 1.Xcode IDE概览 说明:从左到右,依次是“导航窗格(Navigator)->边...
    06a6a973d7ab阅读 9,328评论 2 20
  • 1.Xcode IDE概览 说明:从左到右,依次是“导航窗格(Navigator)->边列(Gutter)->焦点...
    小地阅读 10,729评论 0 9
  • 或是醉酒后的断片, 一早上的头痛难受, 或是夏日午后的困乏, 在燥动的空气中神游, 亦或是不时的停机, 断去所有的...
    黄衫儿阅读 1,053评论 0 0