Xcode was not detected on this Mac

You also need to point to the correct Xcode install run xcode-select -r in a terminal to reset it to the default

1 Like