X code not detected on mac what do i do?

Hi

I am new to unreal, first time I have launched it on my mac, and it says xcode was not detected on this mac. Can someone help explain what it is I need to do? It says make sure its set at default using xcode-select tool and I dont know where that setting is.

Thanks