You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix macOS binary interface imports for NSHostingView #1190
area: hosting-bridgeSwiftUI bridge, UIHosting/NSHosting, representables, and platform host views.platform: macOSmacOS-specific behavior or support.type: bugSomething is not working correctly.type: buildBuild system, packaging, toolchain, release, or compiler support.
The OpenSwiftUI 0.24.0 binary package fails to compile on macOS when Swift loads its textual interface. The iOS Example works, but the macOS Example reports four methods that do not override a superclass method.
Reproduction
Use OpenSwiftUI-spm 0.24.0 and build its Example for My Mac with Xcode 26.6 (Swift 6.3.3). The failure also occurs when type-checking import OpenSwiftUI with a fresh module cache and textual interface loading.
Expected behavior
The binary package imports and the Example builds on macOS with the public SDK.
Actual behavior
The exported NSHostingView interface includes these overrides:
_recursiveSetDefaultKeyViewLoop()
designatedFocusRing()
_recursiveGatherAllKeyViewCandidates(in:)
_firstResponder(for:)
Their superclass declarations come from private AppKit headers used to build the framework. Those declarations are absent from the consumer's public SDK, so each override fails with method does not override any method from its superclass.
Acceptance criteria
Keep the native method implementations without exposing private AppKit overrides in textual interfaces.
Build the binary package Example successfully on macOS.
Extend the binary interface check to iOS, macOS, and visionOS, using the complete release XCFramework build.
area: hosting-bridgeSwiftUI bridge, UIHosting/NSHosting, representables, and platform host views.platform: macOSmacOS-specific behavior or support.type: bugSomething is not working correctly.type: buildBuild system, packaging, toolchain, release, or compiler support.
Activity