
Your Mac might restart and show a progress bar several times, and the screen might be empty for minutes at a time.Īfter installation is complete, your Mac might restart to a setup assistant. Allow installation to complete without putting your Mac to sleep or closing its lid.If the installer offers you the choice between installing on Macintosh HD or Macintosh HD - Data, choose Macintosh HD.If the installer doesn't see your disk, or it says that it can't install on your computer or volume, you might need to erase your disk first.If the installer asks to unlock your disk, enter the password that you use to log in to your Mac.Click Continue, then follow the onscreen instructions.Reinstalling macOS doesn't remove your personal data. In this case xcode-select -reset works as pointed by akozin.When you see a window with the option to reinstall macOS, your Mac has started up from Recovery. You may get an error message: "Can't install the software because it is not currently available from the Software Update server". I found the solution in this question, Command Line Tools not working.

Sudo xcode-select -switch /Library/Developer/CommandLineTools sudo xcode-select -switch /Applications/Xcode.app As a follow on step, you may need to reset the path to Xcode if you have several versions or want the command line tools to run without Xcode. The problem is that one needs to explicitly agree to the license agreement. If the above alone doesn't do it, then also run: sudo xcode-select -reset

You do not need Xcode, you can install only the Command Line Tools here, it is about 130 MB (600 MB as of Xcode v14.1).

(The popped Window may be behind other windows.) This will pop a dialogue box, Select "Install", and it will download and install the Command Line Tools package and fix the problem. Open Terminal, and run the following: xcode-select -install
