Hi,
You are probably missing the command line tool of Xcode. Did you do xcode-select --install ?
xcode-select --install
See Dependencies - ROOT
Lorenzo