-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MacCatalyst] OperatingSystem is currently not working #21390
Comments
TL;DR macOS reports https://github.com/drasticactions/MauiRepoRedux/tree/MacCatalystVersion ![]() xamarin-macios/src/ObjCRuntime/Runtime.cs Lines 2688 to 2702 in 0db186c
![]()
That value is coming from It may be that this needed that the To work around it, checking against |
This issue was moved to dotnet/runtime#108694 |
Description
It looks like on MacCatalyst the Build on the
Environment.OSVersion.Version
is set to "-1" so when you callif (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 pointCatalyst
iOS
The text was updated successfully, but these errors were encountered: