'cmath' file not found when running brms models

We’re finding that sometimes people’s versions of Xcode don’t match their OS version, and Apple doesn’t seem to care but it can affect Stan compilation. For example:

Depending on the situation it could be that the Xcode version is greater or smaller than the OS version, in which case you’d need to upgrade or downgrade one or the other to get the versions in sync. Very unfortunate Apple doesn’t think this is an issue!