đź“ť Edit page
âž• Add page
macOS dev tools
Xcode
macOS developer tool.
Installation
- Download Xcode from Apple store.
- Downloads and resources section within Xcode on Apple developers site.
Usage
$ xcode-select OPTIONS
Help
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s <path>, --switch <path> set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
Command Line Tools
How to update your Command Line Tools (CLT), which work with a version of Xcode.
Installation
$ softwareupdate --all --install --force
Software Update Tool
Finding available software
Downloading Command Line Tools for Xcode
Alternatively, manually download from here.
Update
Update from Software Update in System Preferences.
Or run:
$ softwareupdate --all --install --force
If that doesn’t show you any updates, run this to install CommandLineTools.
$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install
I found the last bit didn’t do anything, but running the softwareupdate...
command after that worked.