no xcode or clt version detected mac os update code example
Example 1: No Xcode or CLT version detected!
xcode-select --print-path
# in my case /Library/Developer/CommandLineTools
# the next line deletes the path returned by the command above
sudo rm -rf $(xcode-select --print-path)
# install them (again) if you don't get a default installation prompt
xcode-select --install
Example 2: No Xcode or CLT version detected!
sudo rm -rf $(xcode-select -print-path)
xcode-select --install