Skip to content

Fix native debug trace formatting in Apple test runners - #253

Open
matthargett wants to merge 1 commit into
BabylonJS:mainfrom
rebeckerspecialties:fix/apple-test-trace-format
Open

matthargett wants to merge 1 commit into
BabylonJS:mainfrom
rebeckerspecialties:fix/apple-test-trace-format

Conversation

@matthargett

Copy link
Copy Markdown

The macOS and iOS test runners pass const char* trace output to NSLog(@"%@", ...), which treats it as an Objective-C object and can crash when diagnostics are enabled. Use %s in both callbacks.

Both entry points compile with -Werror=format and emit the expected message through the real DebugTrace::Trace callback in a macOS harness. No iOS device run was performed.

The trace callback receives const char*, but NSLog was given %@, which interprets that pointer as an Objective-C object. Use %s for the C string on both macOS and iOS so diagnostic tracing does not send messages to an invalid object.

Both entry points compile with -Werror=format and emit the expected sentinel through the real DebugTrace callback in a macOS harness.
Copilot AI lite review requested due to automatic review settings September 17, 2026 22:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants