Skip to content
Prev Previous commit
Next Next commit
Prevent linking with libclrjit.dylib for CoreCLR on Apple mobile plat…
…forms
  • Loading branch information
kotlarmilos committed Dec 9, 2025
commit f70fde8388b91d4d2bc06b6e8897669bb1d1ce21
8 changes: 8 additions & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,14 @@
'%(ResolvedFileToPublish.NuGetPackageId)' == '$(_MonoNugetPackageId)'
"
/>
<!-- Don't link with libclrjit.dylib when using CoreCLR on Apple mobile platforms -->
<_MonoLibrary
Remove="@(_MonoLibrary)"
Condition=" '$(_XamarinRuntime)' == 'CoreCLR' And
'$(_PlatformName)' != 'macOS' And
'%(Filename)' == 'libclrjit'
"
/>
</ItemGroup>
</Target>

Expand Down