Yes. Unfortunately, the
pkgbuild::has_build_tools function tests whether it can compile a hello world program in C, which Catalina with Xcode can do. However, Catalina with Xcode miscompiles C++ so as to mispropagate exceptions under R, so most non-trivial Stan programs will terminate the MCMC without returning results. That is why we use LLVM clang++ rather than Xcode clang++ until Apple started blocking our toolchain installer starting January 1 because it is not a certified Apple Developer application.
If the people would put down their pitchforks and read the wiki, it does eventually say
If this line ultimately returns
TRUE , then your C++ toolchain is properly installed and you can jump to the next section, unless you have the Catalina version of the Mac OSX operating system (see 3 below).
3 If you use a Mac, a link will appear but do not click on it. Instead go here
which takes you to a page that says
We recommend using the macOS R toolchain installer for pre-Catalina versions of the operating system. If you have Catalina, then you need to follow these instructions starting from “Manual Install Guide” to download and configure your C++ toolchain.
Suggestions are more than welcome as to how to reword that or anyone can just edit the wiki pages themselves. But I don’t know how better to explain in a few words why the only way forward at the moment is so messed up on Macs.