Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 30, 2025

This PR adopts a Core Foundation function, new in macOS 15.4/etc. and added for us to use, that captures backtraces for NSError and CFError instances at initialization time and stores them in a sidecar location for consumption by Swift Testing and/or XCTest.

Upstreaming from Apple's fork (rdar://139841808, 508230a + dd7bae2)

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR adopts a Core Foundation function, new in macOS 15.4/etc. and added for
us to use, that captures backtraces for `NSError` and `CFError` instances at
initialization time and stores them in a sidecar location for consumption by
Swift Testing and/or XCTest.

Upstreaming from Apple's fork (rdar://139841808, 508230a)
@grynspan grynspan added this to the Swift 6.x (main) milestone Sep 30, 2025
@grynspan grynspan self-assigned this Sep 30, 2025
@grynspan grynspan added enhancement New feature or request darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support issue-handling Related to Issue handling within the testing library labels Sep 30, 2025
@grynspan grynspan merged commit 3d5dd84 into main Sep 30, 2025
24 checks passed
@grynspan grynspan deleted the jgrynspan/enable-foundation-error-backtrace-capture branch September 30, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support enhancement New feature or request issue-handling Related to Issue handling within the testing library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants