Skip to content

Commit 1cd12c4

Browse files
[release/7.0.3xx] [tools] Always link weakly with NewsstandKit. Fixes #18606. (#18624)
It seems that Apple will completely remove the NewsstandKit framework from iOS 17. This poses a problem for existing apps that link with NewsstandKit: they will crash at launch. Solve this by always linking weakly with the NewsstandKit framework; this way any apps that link with it will keep working if the framework ends up being removed by Apple. Fixes #18606. Fixes dotnet/maui#16316. Backport of #18621
1 parent 43ae6c7 commit 1cd12c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/common/Frameworks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public static Frameworks CreateiOSFrameworks (bool is_simulator_build)
341341

342342
{ "Accounts", "Accounts", 5 },
343343
{ "GLKit", "GLKit", 5 },
344-
{ "NewsstandKit", "NewsstandKit", 5 },
344+
{ "NewsstandKit", "NewsstandKit", 5, /* alwaysWeakLink: */ true }, // This framework was completely removed in iOS 17, so make sure existing apps that may link with NewsstandKit don't crash (by linking weakly). Ref: https://github.com/xamarin/xamarin-macios/issues/18606
345345
{ "CoreImage", "CoreImage", 5 },
346346
{ "CoreBluetooth", "CoreBluetooth", 5 },
347347
{ "Twitter", "Twitter", 5 },

0 commit comments

Comments
 (0)