Faster Download and Install XCode

Download XCode from developer.apple.com

Then open a terminal, go to the folder where you downloaded XCode and extract the xip file:

sh
xip -x Xcode.xip # output: # “xip: signing certificate was "Software Update" (validation not attempted)” # xip: expanded items from "/Users/user/Downloads/Xcode.xip"

It will take a few minutes... Finally, move the extracted Xcode app to the /Applications folder

Set the default Xcode version with this command:

sh
sudo xcode-select -switch /Applications/Xcode.app