From 98093e202dc240c363fe3447f95981378d222996 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 9 Apr 2024 16:17:39 +0200 Subject: [PATCH] [dotnet] Automatically link with the Security framework. Fixes #20406. It seems we might not always link with the Security framework by default, so link with it explicitly. Fixes https://github.com/xamarin/xamarin-macios/issues/20406. --- dotnet/targets/Xamarin.Shared.Sdk.targets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index a65007413748..8a2cebbc1129 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -1448,6 +1448,9 @@ <_NativeExecutableFrameworks Include="CFNetwork" Condition="'$(_PlatformName)' == 'iOS'" /> + + <_NativeExecutableFrameworks Include="Security" /> + <_MainLinkerFlags Include="-lz" /> <_MainLinkerFlags Include="-liconv" />