

Xcode-select -switch /Applications/Xcode.appĪs above, selects /Applications/Xcode.app/Contents/Developer as theĪctive developer directory. Select /Applications/Xcode.app/Contents/Developer as the active
#XCODE FOR MAC BASH FULL#
Ment variable into the full Developer content path.ĮXAMPLES xcode-select -switch /Applications/Xcode.app/Contents/Developer Xcode-select provided shims will automatically convert the environ. Tents directory, or the Xcode application directory - the YouĬan set the environment variable to either the actual Developer con. Tion (for example /Applications/Xcode.app/Contents/Developer). Note that for historical reason, the developer directory is consid-Įred to be the Developer content directory inside the Xcode applica. Its value will be used instead of the system-wide active developer Overrides the active developer directory. Opens a user interface dialog to request automatic installation Sudo(8)), and will affect all users on the system. This command must be run with superuser permissions (see Unsets any user-specified developer directory, so that theĭeveloper directory will be found via the default search mecha. Should use xcrun(1) to locate tool inside the active developer This is useful for inspection, but scripts and other tools Prints the path to the currently selected developer directory. Ronment variable instead (see ENVIRONMENT). Only for the current shell session, use the DEVELOPER_DIR envi. To set the path without superuser permissions or Superuser permissions (see sudo(8)), and will affect all users Sets the active developer directory to the given path, for exam. Inside the active developer directory, making it easy to switch themīetween different versions of the Xcode tools and allowing them toįunction properly on systems where the Xcode application has been Makefiles, and other tools can also use xcrun(1) to easily lookup tools Of the tool inside the selected developer directory. Applications/Xcode.app, containing the latest Xcode, and /Applica- tions/Xcode-DP.app containing a developer preview) use xcode-select -switch path/to/Xcode.app to specify the Xcode that you wish to useĪfter setting a developer directory, all of the xcode-select providedĭeveloper tool shims (see FILES) will automatically invoke the version When multiple Xcode applications are installed on a system (e.g.
#XCODE FOR MAC BASH UPDATE#
Xcode tools and can be used to update the path to the Xcode if it is This allows you to easily switch between different versions of the This also controls the locations that are searched for by man(1)

Xcrun(1), xcodebuild(1), cc(1), and other Xcode and BSD development SYNOPSIS xcode-select ĭESCRIPTION xcode-select controls the location of the developer directory used by Xcode-select - Manages the active developer directory for Xcode and BSD
#XCODE FOR MAC BASH MANUAL#
Xcode-select(1) BSD General Commands Manual xcode-select(1)
