Right now I have xcode 6.0(Beta) as a default version of my xcode.
现在我有xcode 6.0(Beta)作为我的xcode的默认版本。
Now today I installed xcode 6 from app store but I want to set xcode 6 as a default version.
现在,我在app store上安装了xcode 6,但我想把xcode 6设置为默认版本。
How can I set it?
我如何设置它?
Thanks in advance.
提前谢谢。
5 个解决方案
#1
67
you could set the desired Xcode using this in the terminal:
您可以在终端中使用这个设置所需的Xcode:
sudo xcode-select -switch <path/to/>Xcode.app
also, for more info, click here
此外,更多信息请点击这里
#2
26
It should be easy.
它应该很容易。
Solution 1:
解决方案1:
- Right click(or Control + Click) on Xcode project file (.xcodeproj).
- 在Xcode项目文件(.xcodeproj)上右键单击(或控件+单击)。
- Hover over 'Open with' and you will find all the Xcode apps from Applications directory listed.
- 悬停在“Open with”上,你会发现所有的Xcode应用程序都来自列出的应用程序目录。
- Now, hold down the Option key so that the “Open With” menu becomes “Always Open With”.
- 现在,按下选项键,“用”菜单就会变成“总是用”。
- Continue to hold Option and select the Xcode version you want to set as the default for this file.
- 继续保持选项并选择要设置为该文件的默认版本的Xcode版本。
Solution 2:
解决方案2:
Another way to apply this change to all the similar files is by clicking "Get info" and then making necessary change in 'Open With' section.
另一种将此更改应用到所有类似文件的方法是单击“获取信息”,然后在“Open With”部分进行必要的更改。
#3
23
Not directly related, however I assume most of you'd find this useful. Here is a link showing the command line FAQs.
不是直接相关的,但是我猜你们大多数人会发现这很有用。这里有一个显示命令行faq的链接。
The most 2 useful commands are.
最有用的两个命令是。
- Printing the version of Xcode currently used by my tools
- 打印我的工具当前使用的Xcode版本
xcode-select --print-path
xcode-select——print-path
- Select the default Xcode for your command-line tools
- 为命令行工具选择默认的Xcode
sudo xcode-select -switch Xcode.app
sudo xcode-select开关xcode
E.g:
sudo xcode-select -switch /Applications/Xcode5.1.1/Xcode.app
E。g: sudo xcode-select -switch / application /Xcode5.1.1/Xcode.app
#4
9
In 10.10 you should use (Assuming you've installed few versions of Xcode as Xcode6.1, Xcode6.2 and Xcode6.3, and want to make Xcode6.3 as default one).
在10.10中,您应该使用(假设您已经安装了几个版本的Xcode作为Xcode6.1、Xcode6.2和Xcode6.3,并希望将Xcode6.3作为默认版本)。
sudo xcode-select --switch /Applications/Xcode6.3.app
This comes handy with some 3rd party applications which fails to reset the path from OSX like SVNX.app
这对于一些第三方应用程序来说很方便,因为它们不能重置OSX的路径,比如SVNX.app
#5
1
This works for me I'm using vanilla titanium CLI.
我用的是香草钛CLI。
Switch to desired Xcode version followed by ti setup
for ios
切换到所需的Xcode版本,然后为ios设置ti
sudo xcode-select -switch /path/to/Xcode.app/Contents/Developer/
sudo xcode-select开关/道路/ / xcode /内容/开发/
ti setup ios
ti ios设置
#1
67
you could set the desired Xcode using this in the terminal:
您可以在终端中使用这个设置所需的Xcode:
sudo xcode-select -switch <path/to/>Xcode.app
also, for more info, click here
此外,更多信息请点击这里
#2
26
It should be easy.
它应该很容易。
Solution 1:
解决方案1:
- Right click(or Control + Click) on Xcode project file (.xcodeproj).
- 在Xcode项目文件(.xcodeproj)上右键单击(或控件+单击)。
- Hover over 'Open with' and you will find all the Xcode apps from Applications directory listed.
- 悬停在“Open with”上,你会发现所有的Xcode应用程序都来自列出的应用程序目录。
- Now, hold down the Option key so that the “Open With” menu becomes “Always Open With”.
- 现在,按下选项键,“用”菜单就会变成“总是用”。
- Continue to hold Option and select the Xcode version you want to set as the default for this file.
- 继续保持选项并选择要设置为该文件的默认版本的Xcode版本。
Solution 2:
解决方案2:
Another way to apply this change to all the similar files is by clicking "Get info" and then making necessary change in 'Open With' section.
另一种将此更改应用到所有类似文件的方法是单击“获取信息”,然后在“Open With”部分进行必要的更改。
#3
23
Not directly related, however I assume most of you'd find this useful. Here is a link showing the command line FAQs.
不是直接相关的,但是我猜你们大多数人会发现这很有用。这里有一个显示命令行faq的链接。
The most 2 useful commands are.
最有用的两个命令是。
- Printing the version of Xcode currently used by my tools
- 打印我的工具当前使用的Xcode版本
xcode-select --print-path
xcode-select——print-path
- Select the default Xcode for your command-line tools
- 为命令行工具选择默认的Xcode
sudo xcode-select -switch Xcode.app
sudo xcode-select开关xcode
E.g:
sudo xcode-select -switch /Applications/Xcode5.1.1/Xcode.app
E。g: sudo xcode-select -switch / application /Xcode5.1.1/Xcode.app
#4
9
In 10.10 you should use (Assuming you've installed few versions of Xcode as Xcode6.1, Xcode6.2 and Xcode6.3, and want to make Xcode6.3 as default one).
在10.10中,您应该使用(假设您已经安装了几个版本的Xcode作为Xcode6.1、Xcode6.2和Xcode6.3,并希望将Xcode6.3作为默认版本)。
sudo xcode-select --switch /Applications/Xcode6.3.app
This comes handy with some 3rd party applications which fails to reset the path from OSX like SVNX.app
这对于一些第三方应用程序来说很方便,因为它们不能重置OSX的路径,比如SVNX.app
#5
1
This works for me I'm using vanilla titanium CLI.
我用的是香草钛CLI。
Switch to desired Xcode version followed by ti setup
for ios
切换到所需的Xcode版本,然后为ios设置ti
sudo xcode-select -switch /path/to/Xcode.app/Contents/Developer/
sudo xcode-select开关/道路/ / xcode /内容/开发/
ti setup ios
ti ios设置