-
I can't find a winning combination of software and toolsets to target any iOS version. iOS 18
iOS 17.5
iOS 17.2Doesn't exist? iOS 17.0
It looks like the Microsoft.iOS.dll that AvaloniaUI references comes from https://www.nuget.org/packages/Microsoft.iOS.Runtime.iossimulator-x64/17.2.8078. For some reason, my project.assets.json file reveals that it doesn't use either of these packages. It consumes Microsoft.iOS.Runtime.iossimulator-arm64.net8.0_17.0, for which 17.0 (not 17.2) is the latest available version. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Changing my TargetFramework from |
Beta Was this translation helpful? Give feedback.
-
Avalonia doesn't target 17.2... It targets 17.0, making it compatible with anything higher too... Avalonia/build/TargetFrameworks.props Line 7 in aabd038 I really don't understand ways how .NET SDK behaves with these workloads. |
Beta Was this translation helpful? Give feedback.
-
Note, that's not how it works. Actually, minimal support version is defined by SupportedOSPlatformVersion. And for Avalonia, supported version is 13.0. |
Beta Was this translation helpful? Give feedback.
Note, that's not how it works.
TargetFramework version specifies a target version. I.e. iOS SDK version you want your app to be linked to.
This app still can run on older OSs assuming it doesn't use any newer APIs in runtime (version guards are useful there).
Actually, minimal support version is defined by SupportedOSPlatformVersion. And for Avalonia, supported version is 13.0.
https://github.com/AvaloniaUI/Avalonia/blob/master/src/iOS/Avalonia.iOS/Avalonia.iOS.csproj#L4C6-L4C32
https://github.com/AvaloniaUI/Avalonia/blob/11.2.0-rc1/build/TargetFrameworks.props#L20C6-L20C31