将 Xcode 降级到 5.0.2

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22563533/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:48:12  来源:igfitidea点击:

Downgrade Xcode to 5.0.2

xcodeosx-mavericks

提问by albus_c

Is there a way to downgrade Xcode from 5.1 to 5.0.2? I am now running version 5.1 and it's giving me all kinds of headaches when I use python.

有没有办法将 Xcode 从 5.1 降级到 5.0.2?我现在运行的是 5.1 版,当我使用 python 时它让我很头疼。

回答by matt

There is no need to "downgrade". Just download Xcode 5.0.2 from the Apple developer download pages, and install it. Give it a name different from Xcode 5.1's name (e.g. call it "Xcode 5.0.2") and they can happily live side by side.

没有必要“降级”。只需从 Apple developer download pages下载 Xcode 5.0.2并安装它。给它起一个不同于 Xcode 5.1 的名字(例如叫它“Xcode 5.0.2”),他们就可以愉快地并肩生活。

To switch between which one is used to look for command line tools such as clang, use the Command Line Tools popup menu in the Locations pref pane. Thus for example I use Xcode 5.1 to write iOS apps, but if I want to build a Ruby gem I switch to the Xcode 5.0.2 command-line tools (because of the problems with the new version of clang, which barfs on command-line arguments it doesn't like).

要在哪个用于查找命令行工具(例如 clang)之间切换,请使用“位置”偏好设置窗格中的“命令行工具”弹出菜单。因此,例如我使用 Xcode 5.1 来编写 iOS 应用程序,但是如果我想构建一个 Ruby gem,我会切换到 Xcode 5.0.2 命令行工具(因为新版本的 clang 存在问题,它在命令上出现问题 -它不喜欢的行参数)。