How to install some tool without fully install Xcode on Mac?
Some command line tool on Mac requires you to install Xcode but you may rarely use Xcode for iOS development, then you may consider follow this tutorial to install xcode-select
only.
Core command: $ xcode-select --install