运行 MacOS 上的 C++ 没有 xcode

Run C++ on MacOS without xcode

我的 Mac OS 13.6 上没有安装 Xcode,但我想 运行 c++ on vs code。有没有办法在不需要安装 Xcode 的情况下做到这一点?另外,我可以 运行 旧版本的 Xcode 和 运行 c++ 没有问题吗?

注意:如果有人发布 link 教程就太好了。

您可以下载并安装LLVM 13.0.1 for Darwin or a small part of Xcode, Xcode command line tools: xcode-select --install

两者都会导致安装 clang++。