On macOS ventura in 2025, installing Xcode Command Line tools solved the problem for me
xcode-select --install