如何更改启动的默认 xcode 版本...?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8532074/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change the default xcode version that is launched...?
提问by Ankit Srivastava
I have both xcode 3.2 and 4.0 version installed on my PC but my problem is whenever I open a project, it opens up with xcode 3.2. Although I have the option of opening my project with open with->xcode 4.0 , I want to change the default Xcode to 4.0. Is there any way it can be done?
我的电脑上同时安装了 xcode 3.2 和 4.0 版本,但我的问题是每当我打开一个项目时,它都会打开 xcode 3.2。虽然我可以选择使用 open with->xcode 4.0 打开我的项目,但我想将默认的 Xcode 更改为 4.0。有什么办法可以做到吗?
回答by Matt Lacey
Use Finder's context menu (i.e. right click on the project) and choose "Get Info"
使用 Finder 的上下文菜单(即右键单击项目)并选择“获取信息”
In the window that pops up is a section titled "Open With" - use that to choose the appropriate version of Xcode, and then use the "Change All" button to specify that it should be used for all projects.
在弹出的窗口中是一个标题为“打开方式”的部分 - 使用它来选择合适的 Xcode 版本,然后使用“全部更改”按钮指定它应该用于所有项目。
On my machine I renamed Xcode.app
for Xcode 3 to Xcode 3
which makes it easy to distinguish between the two versions.
在我的机器上,我将Xcode.app
Xcode 3重命名为,Xcode 3
这样可以轻松区分两个版本。
回答by Nishith Shah
First right click on the Project whichever you want to open. Now select the openWith option and choose "Other" option.
首先右键单击要打开的项目。现在选择 openWith 选项并选择“其他”选项。
Now choose the Xcode 4.0 that is installed on your MAC. Select All Application from Enable Menu and also check "Always Open With Option". Then Click OK.
现在选择安装在您的 MAC 上的 Xcode 4.0。从启用菜单中选择所有应用程序,并选中“始终打开选项”。然后单击确定。