您的位置:首页 > 其它

查看xcode&instruments版本以及版本切换

2016-01-12 10:53 267 查看
一、查看xcode版本

【1】方法一:命令行查看

xcodebuild -version

输出结果如下:

Xcode 7.1.1
Build version 7B1005
【2】方法二:打开xcode,工具栏:xcode->about xcode 
参考文档:
http://jingyan.baidu.com/article/d621e8da36396d2865913f9b.html
二、查看instruments版本

【1】方法一:命令行输入:instruments

输入结果如下:

instruments, version 7.1.1 (59040)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
【2】方法二:打开instruments,工具栏:instruments->about instruments

三、打开模拟器Simulator
【1】方法一:xcode ->open developer tool ->simulator
【2】方法二:xcode编译工程,选择模拟器,编译完成后,模拟器自动启动

四、切换xcode版本
xcode-select 命令
如:sudo xcode-select --switch /Applications/Xcode5.0.2.app/

Options:
  -h, --help                  print this help message and exit
  -p, --print-path            print the path of the active developer directory
  -s <path>, --switch <path>  set the path for the active developer directory
  --install                   open a dialog for installation of the command line developer tools
  -v, --version               print the xcode-select version
  -r, --reset                 reset to the default command line tools path

说明:
1、使用xcode-select -s来指定xcode路径
2、instruments随xcode版本的切换而同步更新
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: