Closed ForkBug closed 1 year ago
These are the same lines of code which are in default .NET MAUI template. Maybe the API which we use is only supported on version 14.2 and later.
Thank you @ForkBug. Could you please send a link to a small repro project. It will help us investigate the issue
See this project: https://github.com/ForkBug/MauiIOSVersion Build the solution with VS 17.3.3, and many warnings will show up.
MauiIOSVersion\MauiProgram.cs(10,3,11,48): warning CA1416: This call site is reachable on: 'iOS' 10.0 and later, 'maccatalyst' 10.0 and later. 'AppBuilderExtensions.UseMauiCommunityToolkit(MauiAppBuilder)' is only supported on: 'iOS' 14.2 and later, 'maccatalyst' 14.2 and later. MauiIOSVersion\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.Generators.TextColorToGenerator\TimePickerTextColorTo.g.shared.cs(48,146,48,175): warning CA1416: This call site is reachable on: 'iOS' 10.0 and later, 'maccatalyst' 10.0 and later.
I think it is due to these lines in the CommunityToolkit.Maui/CommunityToolkit.Maui.csproj project file:
`
I confirm it is reproduced. We will discuss the issue on next stand up
I second this issue, I cannot use the community toolkit unless ios 11 is at least supported
Is there an existing issue for this?
Current Behavior
A project said the following errors when being compiled: "warning CA1416: This call site is reachable on: 'iOS' 10.0 and later, 'maccatalyst' 10.0 and later. 'ColorConversionExtensions.WithRed(Color, double)' is only supported on: 'iOS' 14.2 and later, 'maccatalyst' 14.2 and later."
And these lines found in the CommunityToolkit.Maui/CommunityToolkit.Maui.csproj project file:
But according to the document, https://docs.microsoft.com/en-us/dotnet/communitytoolkit/maui/, iOS 10 or higher is supported.
Which one is correct?
Expected Behavior
iOS 10 or higher is supported.
Steps To Reproduce
No
Link to public reproduction project repository
https://github.com/ForkBug/MauiIOSVersion
Environment
Anything else?
No response