Uh oh!
There was an error while loading. Please reload this page.
[ios-clr] Enable StackTrace tests on Apple mobile - #127060
Conversation
… mobile AppleAppBuilder.Xcode strips .pdb files from the app bundle in optimized builds, leaving CoreCLR iOS/tvOS stack traces without file or symbol information. Keep .pdb for CoreCLR. With PDBs preserved, StackFrameTests.Ctor_FNeedFileInfo and DiagnosticMethodInfoTests.Create_OpenDelegate pass; the remaining StackTraceTests formatting gap (full file + line info) is still tracked by dotnet#124087, extend the existing Android-style empty-file-info pattern to Apple mobile. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Tagging subscribers to this area: @steveisok, @dotnet/area-system-diagnostics |
There was a problem hiding this comment.
Pull request overview
Preserves debug symbols in Apple mobile CoreCLR app bundles to improve stack trace/file info behavior and re-enables/adjusts System.Diagnostics.StackTrace tests for Apple mobile runs.
Changes:
- Stop excluding
.pdbfiles in optimized Apple mobile app builds when targeting CoreCLR. - Re-enable
System.Diagnostics.StackTrace.Testson Apple mobile CoreCLR inlibraries/tests.proj. - Update stack trace/file-info test expectations and ActiveIssue annotations for Apple mobile.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/tasks/AppleAppBuilder/Xcode.cs | Keeps .pdb files for optimized CoreCLR Apple mobile app bundles by scoping the exclusion to non-CoreCLR runtimes. |
| src/libraries/tests.proj | Removes the Apple mobile CoreCLR exclusion for System.Diagnostics.StackTrace.Tests.csproj to allow the suite to run. |
| src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs | Extends “no file info” pattern matching to Apple mobile (currently unconditional on runtime). |
| src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs | Removes an Apple mobile ActiveIssue from the skip-frames StackFrame ctor test. |
| src/libraries/System.Diagnostics.StackTrace/tests/DiagnosticMethodInfoTests.cs | Adjusts the open-delegate bug gating and adds an Apple mobile CoreCLR ActiveIssue to the remaining failing theory. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kotlarmilos
commented
Apr 17, 2026
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
kotlarmilos
commented
Apr 20, 2026
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
kotlarmilos
commented
Apr 21, 2026
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
kotlarmilos
commented
Apr 27, 2026
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
kotlarmilos
commented
Apr 28, 2026
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Description
This PR enables StackTrace library tests on Apple mobile. The line numbers are not displayed on Apple mobile, tracked in #124087.