From 8401c2dd7bdf9174f691886c23e4d6ad0c62f5dc Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Thu, 8 Jan 2026 14:43:45 -0800 Subject: [PATCH] Add support for additional iOS and tvOS platforms in ResolveReadyToRunCompilers Fixes https://github.com/dotnet/runtime/issues/122985 --- .../ResolveReadyToRunCompilers.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs index 0885314cd665..29a23d69ad8d 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveReadyToRunCompilers.cs @@ -210,7 +210,7 @@ private bool GetCrossgen2TargetOS(out string targetOS) string portablePlatform = NuGetUtils.GetBestMatchingRid( runtimeGraph, _targetRuntimeIdentifier, - ["linux", "osx", "win", "freebsd", "illumos", "haiku"], + ["linux", "osx", "win", "ios", "iossimulator", "tvos", "tvossimulator", "maccatalyst", "freebsd", "illumos", "haiku"], out _); targetOS = portablePlatform switch @@ -218,6 +218,11 @@ private bool GetCrossgen2TargetOS(out string targetOS) "linux" => "linux", "osx" => "osx", "win" => "windows", + "ios" => "ios", + "iossimulator" => "iossimulator", + "tvos" => "tvos", + "tvossimulator" => "tvossimulator", + "maccatalyst" => "maccatalyst", "freebsd" => "freebsd", "illumos" => "illumos", "haiku" => "haiku",