From 2098fbd68365c3dcc20eef057e4bd422147f668f Mon Sep 17 00:00:00 2001 From: VS MobileTools Engineering Service 2 Date: Mon, 7 Aug 2023 23:28:36 -0700 Subject: [PATCH] [release/7.0.3xx] [tools] Don't link with NewsstandKit if we're using Xcode 15+. (#18631) Apple completely removed the NewsstandKit framework in Xode 15. This effectively adds basic support for using Xcode 15 with .NET 7. While this technically won't be a supported scenario, we have tests that ensures .NET 7 apps can be built with .NET 8, and .NET 8 will ship with Xcode 15 support. This means that in order to make these tests work, we'll otherwise have to have Xcode 14.3 installed both locally and on bots (in addition to Xcode 15 of course), which is a rather big nightmare. It's much easier to must try to make Xcode 15 work with .NET 7. Backport of #18626 --- tools/common/Frameworks.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/common/Frameworks.cs b/tools/common/Frameworks.cs index b38fb599ccab..5c5b7d18d616 100644 --- a/tools/common/Frameworks.cs +++ b/tools/common/Frameworks.cs @@ -790,6 +790,12 @@ static bool FilterFrameworks (Application app, Framework framework) return false; } break; + case "NewsstandKit": + if (Driver.XcodeVersion.Major >= 15) { + Driver.Log (3, "Not linking with the framework {0} because it's been removed from Xcode 15+.", framework.Name); + return false; + } + break; } break; case ApplePlatform.TVOS: