From e515dc9df1afaa66cf1358e08725902c09a3b524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Sua=CC=81rez?= Date: Fri, 29 Aug 2025 08:33:49 +0200 Subject: [PATCH] Re-enable iOS NativeAOT and Mono full trimming tests by handling ObjCRuntime warnings --- .../Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs b/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs index e0cb8fd37307..a5b5dd44a3d7 100644 --- a/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs +++ b/src/TestUtils/src/Microsoft.Maui.IntegrationTests/AppleTemplateTests.cs @@ -35,9 +35,8 @@ public void AppleTemplateFxtTearDown() // [TestCase("maui-blazor", "Release", DotNetPrevious, "iossimulator-x64", RuntimeVariant.Mono, null)] [TestCase("maui-blazor", "Debug", DotNetCurrent, "iossimulator-x64", RuntimeVariant.Mono, null)] [TestCase("maui-blazor", "Release", DotNetCurrent, "iossimulator-x64", RuntimeVariant.Mono, null)] - // FIXME: has trimmer warnings - // [TestCase("maui-blazor", "Release", DotNetCurrent, "iossimulator-x64", RuntimeVariant.Mono, "full")] - // [TestCase("maui", "Release", DotNetCurrent, "iossimulator-x64", RuntimeVariant.NativeAOT, null)] + [TestCase("maui-blazor", "Release", DotNetCurrent, "iossimulator-x64", RuntimeVariant.Mono, "full")] + [TestCase("maui", "Release", DotNetCurrent, "iossimulator-x64", RuntimeVariant.NativeAOT, null)] public void RunOniOS(string id, string config, string framework, string runtimeIdentifier, RuntimeVariant runtimeVariant, string trimMode) { var projectDir = TestDirectory; @@ -59,7 +58,7 @@ public void RunOniOS(string id, string config, string framework, string runtimeI if (!string.IsNullOrEmpty(trimMode)) { buildProps.Add($"TrimMode={trimMode}"); - buildProps.Add("TrimmerSingleWarn=false"); + buildProps.Add("TrimmerSingleWarn=false"); // Disable trimmer warnings for iOS full trimming builds due to ObjCRuntime issues } Assert.IsTrue(DotnetInternal.Build(projectFile, config, framework: $"{framework}-ios", properties: buildProps),