installing problem on mac os Monterey

when I start the program, this message comes out: Can’t find Xcode install for Metal compiler. Please install Xcode and run Xcode.app to accept license or ensure active developer directory is set to current Xcode installation using xcode-select.

I Don’t know what to do.

This worked for me. Open a terminal and type:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer