Skip to content

Environment.OSVersion.Version behavior in macOS 26 #116503

@vcsjones

Description

@vcsjones

Apple is switching up their versioning numbers again, this time by aligning all of their platforms to be version 26.

Much like Apple Big Sur, Apple returns a compatibility value for software that does not indicate that it understands the new versioning scheme, as was seen in #41012.

Right now, Environment.OSVersion.Version returns 16.0.0 on macOS 26.

Setting the SYSTEM_VERSION_COMPAT environment variable to 0 causes the correct value to be returned, as does building against a newer SDK. With this, the API correctly returns 26.0.0.

This also likely impacts mobile Apple platforms as well, since they are also adopting the new version scheme. They may have a harder time using the environment variable as a work around.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions