【问题标题】:Launching desired version of XCode from Finder从 Finder 启动所需版本的 XCode
【发布时间】:2011-09-06 11:56:10
【问题描述】:

我的 google-fu 让我失望了,我想这可能是基本的 OS X/Xcode 知识,但是....

当我双击 .xcodeproj 文件时,我得到的是我安装的测试版,而不是稳定版——这是我真正想要的。

我尝试在查找器信息窗口中更改启动程序,但它始终显示为“Xcode”并且似乎不接受存在不同版本 - 即使它在下拉列表中向我提供了它们。

这有 xcode 设置吗?

谢谢。

【问题讨论】:

  • 您是否在两个不同的位置安装了 Xcode?​​span>
  • 是的,稳定版(3.2.1)在/Developer,Beta在/DeveloperBeta

标签: xcode ide macos


【解决方案1】:

命令行工具xcode-select就是你想要的:

Usage: xcode-select -print-path
   or: xcode-select -switch <xcode_folder_path>
   or: xcode-select -version
Arguments:
   -print-path                     Prints the path of the current Xcode folder
   -switch <xcode_folder_path>     Sets the path for the current Xcode folder
   -version                        Prints xcode-select version information

您必须使用sudo 才能将其实际更改为-switch

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-15
    • 2017-02-18
    • 1970-01-01
    • 2021-11-15
    • 2018-07-21
    • 1970-01-01
    相关资源
    最近更新 更多