From 40e08acc80785fb1e8e07eb9e48affd5f36722fe Mon Sep 17 00:00:00 2001 From: dustin-wojciechowski Date: Wed, 4 Oct 2023 09:35:09 -0700 Subject: [PATCH] Revert "[MacCatalyst] Added Default Entitlements for MacCatalyst projects (#18669)" This reverts commit 1b016fa072fd0f38c91289ab2ffa402cbee71779. --- .../Xamarin.Shared.Sdk.DefaultItems.targets | 13 ---------- tests/dotnet/UnitTests/ProjectTest.cs | 26 ------------------- 2 files changed, 39 deletions(-) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.DefaultItems.targets b/dotnet/targets/Xamarin.Shared.Sdk.DefaultItems.targets index a593297cd5ea..36e5fe511ba9 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.DefaultItems.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.DefaultItems.targets @@ -20,19 +20,6 @@ - - True - True - - - - - - - - - - diff --git a/tests/dotnet/UnitTests/ProjectTest.cs b/tests/dotnet/UnitTests/ProjectTest.cs index 98281f984c08..c0389a4325b8 100644 --- a/tests/dotnet/UnitTests/ProjectTest.cs +++ b/tests/dotnet/UnitTests/ProjectTest.cs @@ -1356,32 +1356,6 @@ public void AutoAllowJitEntitlements (ApplePlatform platform, string runtimeIden } } - [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-x64", "Release")] - [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-x64", "Debug")] - public void CheckForMacCatalystDefaultEntitlements (ApplePlatform platform, string runtimeIdentifiers, string configuration) - { - var project = "Entitlements"; - Configuration.IgnoreIfIgnoredPlatform (platform); - Configuration.AssertRuntimeIdentifiersAvailable (platform, runtimeIdentifiers); - - var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var appPath, configuration: configuration); - Clean (project_path); - - var properties = GetDefaultProperties (runtimeIdentifiers); - properties ["Configuration"] = configuration; - DotNet.AssertBuild (project_path, properties); - - var executable = GetNativeExecutable (platform, appPath); - var foundEntitlements = TryGetEntitlements (executable, out var entitlements); - Assert.IsTrue (foundEntitlements, "Issues found with Entitlements."); - if (configuration == "Release") { - Assert.IsTrue (entitlements!.Get ("com.apple.security.app-sandbox")?.Value, "com.apple.security.app-sandbox enlistment was not found in Release configuration."); - Assert.IsNull (entitlements.Get ("com.apple.security.get-task-allow")?.Value, "com.apple.security.get-task-allow enlistment was found in Release configuration."); - } else if (configuration == "Debug") { - Assert.IsTrue (entitlements!.Get ("com.apple.security.get-task-allow")?.Value, "com.apple.security.get-task-allow enlistment was not found in Debug configuration."); - } - } - // [TestCase (ApplePlatform.MacCatalyst, null, "Release")] [TestCase (ApplePlatform.MacOSX, null, "Release")] public void NoWarnCodesign (ApplePlatform platform, string runtimeIdentifiers, string configuration)