Comment on Installing Command line tools for XCode-14 fails for my M1 Uninstalling oh-my-zsh worked in my case, by running uninstall_oh_my_zsh App & System Services Core OS Oct ’22