Skip to content

[MacCatalyst] OperatingSystem is currently not working  #108694

@rolfbjarne

Description

@rolfbjarne

From @PureWeen on Tue, 08 Oct 2024 20:22:20 GMT

Description

It looks like on MacCatalyst the Build on the Environment.OSVersion.Version is set to "-1" so when you call

if (OperatingSystem.IsMacCatalystVersionAtLeast(18,0))

it resolves to false.
This works fine on iOS just not MacCatalyst

Reproduction

aoperatingsystem.zip

Just run the app and I've set a label on the screen to output the value of OSVersion.Version. I've also included some if statements in the main page you can break point

Catalyst

image

iOS

image

Copied from original issue dotnet/macios#21390

Metadata

Metadata

Assignees

Labels

area-System.Runtimein-prThere is an active PR which will close this issue when it is mergedos-maccatalystMacCatalyst OS

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions