In my case, I tried xcode-select --install
but it says that it's not available from the store. Then, inspired by Rimian, I checked my gcc : gcc -v
and then I got a message saying I did not aggreed.
From that point I just followed the agreement process from gcc -v
, after I agreed it works fine for me.