On Jul 23, 2008, at 11:07 AM, Jack Brindle wrote:
When using xcodebuild, can the specific version of installed Xcode be selected? We have both Version 3.1 and 2.5 installed. Most of our work uses Xcode 3.1, but we do have projects that need to build using the 2.5 tools. How do we tell codebuild which set of tools to use?
XCODE_SELECT(1) BSD General Commands Manual XCODE_SELECT(1)
NAME
xcode-select -- Manages the path to the Xcode folder for Xcode BSD tools.
SYNOPSIS
xcode-select [-help]
xcode-select [-switch xcode_folder_path]
xcode-select [-print-path]
xcode-select [-version]
DESCRIPTION
xcode-select controls the location of the Xcode folder which will be used
by xcodebuild(1) and other, related Xcode BSD tools. This allows you to
easily switch between using different versions of the Xcode tools, and
can be used to update the path to the current Xcode folder if it is moved
after installation.
xcode-select does not affect gcc(1), ld(1), gdb(1), and many of the other
Xcode BSD tools. For a list of the tools which do use xcode-select, see
FILES below.