diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.plist index ac853ae00090..de4adc94a9c9 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.plist @@ -9,10 +9,6 @@ com.apple.security.network.client - - - com.apple.security.get-task-allow - diff --git a/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.plist b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.plist index dacbbb8191dd..de4adc94a9c9 100644 --- a/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.plist +++ b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.plist @@ -9,10 +9,6 @@ com.apple.security.network.client - - - - diff --git a/src/TestUtils/src/Microsoft.Maui.IntegrationTests/TemplateTests.cs b/src/TestUtils/src/Microsoft.Maui.IntegrationTests/TemplateTests.cs index 74006890ba94..1c405b5745a7 100644 --- a/src/TestUtils/src/Microsoft.Maui.IntegrationTests/TemplateTests.cs +++ b/src/TestUtils/src/Microsoft.Maui.IntegrationTests/TemplateTests.cs @@ -248,9 +248,8 @@ public void CheckEntitlementsForMauiBlazorOnMacCatalyst(string id, string config Assert.IsTrue(DotnetInternal.Build(projectFile, config, framework: $"{framework}-maccatalyst", properties: buildWithCodeSignProps), $"Project {Path.GetFileName(projectFile)} failed to build. Check test output/attachments for errors."); - List expectedEntitlements = config == "Release" ? - new() { "com.apple.security.app-sandbox", "com.apple.security.network.client" } : - new() { "com.apple.security.app-sandbox", "com.apple.security.network.client", "com.apple.security.get-task-allow" }; + List expectedEntitlements = + new() { "com.apple.security.app-sandbox", "com.apple.security.network.client" }; List foundEntitlements = Codesign.SearchForExpectedEntitlements(entitlementsPath, appLocation, expectedEntitlements); CollectionAssert.AreEqual(expectedEntitlements, foundEntitlements, "Entitlements missing from executable.");