[ci-scan] Build break: SYSLIB1064 in AppleTestRunner.cs blocks Apple NativeAOT test legs
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1596986 Build error leg or test failing: iossimulator-x64 Release AllSubsets_NativeAOT-Build product
KBE authoring guidance (ci-failure-scan)Error Detailsis for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.- Build Analysis parses only the single JSON block under
Error Message. ErrorMessageis a case-sensitive ordinalString.Containssubstring copied verbatim from the failing log.- Set
BuildRetrytotrueonly for a clear infrastructure retry case.ExcludeConsoleLogdisables Helix console-log scanning.
Error Details
src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(24,33): error SYSLIB1064: Method 'mono_ios_append_output' with 'LibraryImportAttribute' must be marked 'safe' or 'unsafe' ((learn.microsoft.com/redacted) [src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/System.Text.Json.SourceGeneration.Roslyn4.4.Tests.csproj::TargetFramework=net11.0]
src/libraries/Common/tests/AppleTestRunner/AppleTestRunner.cs(27,33): error SYSLIB1064: Method 'mono_ios_set_summary' with 'LibraryImportAttribute' must be marked 'safe' or 'unsafe' ((learn.microsoft.com/redacted) [src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/System.Text.Json.SourceGeneration.Roslyn4.4.Tests.csproj::TargetFramework=net11.0]
Build FAILED.
0 Warning(s)
4 Error(s)The AppleTestRunner.cs test-support source fails to compile on Apple NativeAOT test legs of runtime-extra-platforms: the LibraryImport-generated mono_ios_append_output / mono_ios_set_summary P/Invoke stubs are flagged by SYSLIB1064 (the method must be marked safe/unsafe). Because this is a Build product failure, Send to Helix is skipped and the affected Apple NativeAOT legs (iossimulator, tvos, maccatalyst) never run their tests. First observed in build 1596986 (2026-09-15) and still failing in build 1598688 (2026-09-16).
Error Message
{
"ErrorMessage": "error SYSLIB1064: Method 'mono_ios_append_output' with 'LibraryImportAttribute' must be marked 'safe' or 'unsafe'",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Workflow artifact: ci-failure-scan Artifact kind: kbe-verification Verified match count: 6 hits in failure.log
Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.
[!NOTE] This issue was generated by the
ci-failure-scanCopilot agentic workflow.
Generated by CI Outer-Loop Failure Scanner · opus48 · 1K AIC · ⌖ 19.8 AIC · ⊞ 19.7K · ◷
Report
| Build | Repository | Step Name | Console log | Pull Request |
|---|---|---|---|---|
| 1602441 | dotnet/runtime | Build product | Log | |
| 1602019 | dotnet/runtime | Build product | Log | |
| 1601744 | dotnet/runtime | Build product | Log | |
| 1601683 | dotnet/runtime | Build product | Log | dotnet/runtime#133828 |
| 1601144 | dotnet/runtime | Build product | Log | |
| 1600746 | dotnet/runtime | Build product | Log | |
| 1600403 | dotnet/runtime | Build product | Log | |
| 1599622 | dotnet/runtime | Build product | Log |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 4 | 8 | 8 |
Source: dotnet/runtime