Skip to content

fix(focus): avoid Swift IRGen outlined-destroy mismatch on FocusStore.Entry.Target - #1275

Merged
Kyle-Ye merged 1 commit into
mainfrom
bugfix/focus_store_target
Nov 28, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
bugfix/focus_store_target

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Closes #1274

Summary

Changes FocusStore.Entry.Target in Sources/OpenSwiftUI/Event/Focus/FocusStore.swift from private enum Target to /* private */ enum Target.

Under macOS incremental Debug builds on Swift < 6.5, FocusStore.o and EvaluateDefaultFocusAction.o emit conflicting linkonce_odr outlined destroy signatures for Optional<FocusStore.Entry<Value>> (_) when Target is private. Making Target module-internal ensures both translation units emit identical outlined value-witness signatures and prevents runtime memory corruption.

@Kyle-Ye Kyle-Ye added platform: macOS macOS-specific behavior or support. type: bug Something is not working correctly. area: event-gesture Events, gestures, tracing, or interaction plumbing. impact: crash Crash, assertion, or fatal runtime failure. labels Nov 28, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T14:42:01.949278Z eb42132 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tuist

tuist Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 7 1498362e1

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 55.0s 1498362e1

Reported by Tuist, faster builds and reliable tests for Xcode, Gradle, Bazel, and more.

@Kyle-Ye
Kyle-Ye merged commit f7346f2 into main Nov 28, 2026
6 checks passed
@Kyle-Ye
Kyle-Ye deleted the bugfix/focus_store_target branch November 28, 2026 14:54
@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.07%. Comparing base (0592025) to head (eb42132).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1275      +/-   ##
==========================================
+ Coverage   29.40%   35.07%   +5.66%     
==========================================
  Files         960     1046      +86     
  Lines       71575    85552   +13977     
==========================================
+ Hits        21048    30004    +8956     
- Misses      50527    55548    +5021     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

area: event-gesture Events, gestures, tracing, or interaction plumbing. impact: crash Crash, assertion, or fatal runtime failure. platform: macOS macOS-specific behavior or support. type: bug Something is not working correctly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Random macOS Debug crashes due to Swift IRGen outlined-destroy mismatch on FocusStore.Entry.Target

1 participant