Building LLVM on Mac

The standalone Toolchain had always been troublesome and personally experience had always been installing the full Xcode suite, and use xcode-select -s to switch to it.

Other than that, You used the troublesome standalone toolchain initially so you might need to clear your build cache before switching to Xcode

Zhang