简体   繁体   English

如何更改启动的默认xcode版本?

[英]How to change the default xcode version that is launched…?

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. 我的PC上安装了xcode 3.2和4.0版本但我的问题是每当我打开一个项目时,它都会打开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. 虽然我可以选择使用open with-> xcode 4.0打开我的项目,但是我想将默认的Xcode更改为4.0。 Is there any way it can be done? 有什么办法可以做到吗?

Use Finder's context menu (ie 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这使得它很容易在两个版本之间区别。

First right click on the Project whichever you want to open. 首先右键单击要打开的项目。 Now select the openWith option and choose "Other" option. 现在选择openWith选项并选择“Other”选项。

Now choose the Xcode 4.0 that is installed on your MAC. 现在选择MAC上安装的Xcode 4.0。 Select All Application from Enable Menu and also check "Always Open With Option". 从启用菜单中选择所有应用程序,然后选中“始终打开选项”。 Then Click OK. 然后单击确定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM