From 02e6b047a779d1ad8196b18d8dd6ab8bb073d3e5 Mon Sep 17 00:00:00 2001 From: maagno Date: Mon, 23 Jun 2025 14:03:29 -0400 Subject: [PATCH] Added backwards compatibility for locating provisioning stuff in legacy Xamarin folders Dev17 still generates provisioning information in the legacy Xamarin paths, so we need a way for this code to consider both new and legacy paths. This fixes an issue where Dev17 fails to build with newer iOS SDK versions that relies only on new MAUI paths. The reason of the failure is because Dev17 uses legacy paths and the iOS SDK looks in new paths. Fixes P0 bug #2505126 --- Xamarin.MacDev/MobileProvision.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Xamarin.MacDev/MobileProvision.cs b/Xamarin.MacDev/MobileProvision.cs index f7d76d9..3eca9c4 100644 --- a/Xamarin.MacDev/MobileProvision.cs +++ b/Xamarin.MacDev/MobileProvision.cs @@ -69,6 +69,7 @@ static MobileProvision () var appDataLocal = Environment.GetFolderPath (Environment.SpecialFolder.LocalApplicationData); ProfileDirectories = new string [] { + Path.Combine (appDataLocal, "Xamarin", "iOS", "Provisioning", "Profiles"), Path.Combine (appDataLocal, "maui", "iOS", "Provisioning", "Profiles") }; }