On Monterrey, the major macOS version has been bumped to “12”, and I get a failed assertion on startup in juce_mac_SystemStats.mm :
SystemStats::OperatingSystemType SystemStats::getOperatingSystemType()
{
#if JUCE_IOS
return iOS;
#else
StringArray parts;
parts.addTokens (getOSXVersion(), ".", StringRef());
const auto major = parts[0].getIntValue();
const auto minor = parts[1].getIntValue();
if (major == 10)
{
jassert (minor > 2);
return (OperatingSystemType) (minor + MacOSX_10_7 - 7);
}
jassert (major == 11); // <-- ASSERT FAILS HERE
return MacOS_11;
#endif
}
Apple will probably keep bumping major versions: next year there will be a macOS 13, etc. Dear JUCE team, could you please future-proof this code accordingly? Thank you ![]()
