diff --git a/dotnet/targets/Xamarin.Shared.Sdk.props b/dotnet/targets/Xamarin.Shared.Sdk.props
index 29788097368c..99b9d4a98d33 100644
--- a/dotnet/targets/Xamarin.Shared.Sdk.props
+++ b/dotnet/targets/Xamarin.Shared.Sdk.props
@@ -137,6 +137,12 @@
+
+
+ ios-arm64
+ tvos-arm64
+
+
<_SdkIsSimulator Condition="$(RuntimeIdentifier.Contains('simulator')) Or $(RuntimeIdentifiers.Contains('simulator'))">true
diff --git a/tests/dotnet/UnitTests/PostBuildTest.cs b/tests/dotnet/UnitTests/PostBuildTest.cs
index 197f6bd3de0e..3b2fc76feba1 100644
--- a/tests/dotnet/UnitTests/PostBuildTest.cs
+++ b/tests/dotnet/UnitTests/PostBuildTest.cs
@@ -233,5 +233,22 @@ public void PublishFailureTest (ApplePlatform platform, string runtimeIdentifier
Assert.That (pkgPath, Does.Not.Exist, "ipa/pkg creation");
}
+
+ [TestCase (ApplePlatform.iOS, "ios-arm64")]
+ [TestCase (ApplePlatform.TVOS, "tvos-arm64")]
+ public void DefaultPublishRid (ApplePlatform platform, string expectedRuntimeIdentifier)
+ {
+ var project = "MySimpleApp";
+ var configuration = "Release";
+ Configuration.IgnoreIfIgnoredPlatform (platform);
+ Configuration.AssertRuntimeIdentifiersAvailable (platform, expectedRuntimeIdentifier);
+
+ var project_path = GetProjectPath (project, expectedRuntimeIdentifier, platform: platform, out var appPath, configuration: configuration);
+ Clean (project_path);
+
+ var properties = GetDefaultProperties ();
+ var rv = DotNet.AssertPublish (project_path, properties);
+ Assert.That (appPath, Does.Exist, "App existence");
+ }
}
}
diff --git a/tests/xharness/Jenkins/TestVariationsFactory.cs b/tests/xharness/Jenkins/TestVariationsFactory.cs
index 5898ed462cdc..50f4c27c94b9 100644
--- a/tests/xharness/Jenkins/TestVariationsFactory.cs
+++ b/tests/xharness/Jenkins/TestVariationsFactory.cs
@@ -229,6 +229,8 @@ public IEnumerable CreateTestVariations (IEnumerable tests, Func