xcodebuild 使用哪个版本的 Xcode? [英] Which version of Xcode does xcodebuild use?

查看:60
本文介绍了xcodebuild 使用哪个版本的 Xcode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在同一台机器上安装了 Xcode 3.2 和 Xcode 4.0.2,它使用 Hudson 进行自动化 CI(持续集成)构建.当我说两者都已安装时,我的意思是我可以同时或互换使用 Xcode 3 和 Xcode 4.它们都存在于机器上,因为我为 Xcode 4 进行了自定义安装,而没有覆盖 Xcode 3(据说).

I have installed both Xcode 3.2 and Xcode 4.0.2 on the same machine, which uses Hudson for automated CI (continuous integration) builds. When I say that both were installed, what I mean by that is that I can use both Xcode 3 and Xcode 4 simultaneously or interchangeably. They both exist on the machine, as I did a custom install for Xcode 4 without overwriting Xcode 3 (supposedly).

  • 对xcodebuild"的命令行调用会调用 Xcode 3 还是 Xcode 4?
    • 这个问题有意义吗?可能了解或不了解该主题的人要求使用 3 构建一些项目,而使用 4 构建一些项目.
    • 或者,Xcode 3 的xcodebuild"存储位置与 Xcode4 的xcodebuild"存储位置是否存在单独的位置?如果有,我可以在构建脚本中使用不同的路径.

    推荐答案

    您可以通过 xcode-select -print-path 了解 xcodebuild 使用的版本.另外,使用 xcode-select -switch <path>

    You can find out what version is xcodebuild using with xcode-select -print-path. Also, change to a different version using xcode-select -switch <path>

    这篇关于xcodebuild 使用哪个版本的 Xcode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆