From 1b03a7ddca5768f99d8ca2af474e53119dcef51c Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 14 Apr 2026 18:02:18 +0000
Subject: [PATCH 1/3] Initial plan
From 4e86e36ab78a0bb9d4d2c45d7e3bc54cec1efec5 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 14 Apr 2026 18:11:45 +0000
Subject: [PATCH 2/3] Add macOS SDK Swift library path to NativeAOT linker
arguments
On macOS 15+, Swift stdlib shims may only exist under the Xcode SDK
path and not in /usr/lib/swift. This causes NativeAOT builds to fail
intermittently when linking libSystem.Security.Cryptography.Native.Apple.a.
Resolve the macOS SDK path via `xcrun --show-sdk-path` and add it as
an additional -L linker search path. iOS-like platforms are unaffected
since they already pass -isysroot which remaps -L paths automatically.
Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/1ea30f49-d15d-45c6-be1d-9572f6f8bf28
Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
---
.../Microsoft.NETCore.Native.Unix.targets | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
index 48b8e6ef368054..b20d4d0aaa9bc2 100644
--- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
+++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
@@ -128,6 +128,14 @@ The .NET Foundation licenses this file to you under the MIT license.
+
+
+
+
+
-
-
-
-