最終更新:2018-05-07 (月) 03:46:40 (867d)  

xcode-select
Top / xcode-select

Manages the path to the Xcode folder for Xcode BSD tools.

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html

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 for Xcode

  • xcode-select  --install
  • Opens a user interface dialog to request automatic installation of the command line developer tools.

HomebrewいれてApache Cordovaでエラーの場合

  • xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools?' is a command line tools instance
    sudo xcode-select --switch /Applications/Xcode.app

関連