安装步骤:
- Download "Xcode Beta" from https://developer.apple.com/download/
- Unzip it and move it to /Applications (Waiting a long time...)
- Download "Command Line Tools for Xcode Beta" from https://developer.apple.com/download/more/
- Run the installer for "Command Line Tools"
- sudo xcode-select --switch path/to/Xcode-beta.app
- xcode-select --install
- /usr/bin/sudo /usr/sbin/softwareupdate --list --all
参考资料:
Cannot install brew on Mojave with Xcode10
macOS 10.14(beta) How to install Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta