Can't find Xcode install for Metal compiler

Make sure xcode is in the applications folder for the command to work. Is looking for Xcode.app inside the Applications folder.

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