のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Mac CommandLineTools

$ xcode-select -r
xcode-select: error: --reset must be run as root (e.g. sudo xcode-select --reset).

$ sudo xcode-select -r
Password:

$ xcode-select -p
/Library/Developer/CommandLineTools
$ /usr/bin/clang --version
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

>||
$ sudo xcode-select -switch /Applications/Xcode_7.3.1.app/Contents/Developer/
$ /usr/bin/clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir: /Applications/Xcode_7.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin