xcodebuild使用哪个版本的Xcode? [英] Which version of Xcode does xcodebuild use?
问题描述
我已经在同一台计算机上安装了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构建一些项目.
- Do command line calls to 'xcodebuild' invoke Xcode 3 or Xcode 4?
- Does that question even make sense? Someone who may or may not be knowledgable on the topic is requesting that some projects be built with 3 and some with 4.
-
或者,是否有单独的位置存储Xcode 3的"xcodebuild"与存储Xcode4的"xcodebuild"?如果有的话,我可以在构建脚本中使用其他路径.
- alternatively, is there a separate location where Xcode 3's 'xcodebuild' is stored vs. where Xcode4's 'xcodebuild' is stored? If there is, I can just use a different path in my build script.
推荐答案
您可以了解xcodebuild与
xcode-select -print-path
一起使用的版本.另外,使用xcode-select -switch <path>
You can find out what version is xcodebuild using with
xcode-select -print-path
. Also, change to a different version usingxcode-select -switch <path>
这篇关于xcodebuild使用哪个版本的Xcode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!