This might be interesting additional info:
The same error manifests in a pure-Swift app that uses SwiftGL (an OpenGL wrapper) to create a single window containing an OpenGL-rendered triangle.
There are no SwiftUI or any other UI components in the app at all.
The project is basically this example app from the SwiftGL tutorial page. See the tutorial at swiftgl.github.io for more info; the app is the result of the tutorial's very first step.
I'm running Xcode 16.2 on my late-2019 MacBook Pro on Sonoma 14.6.1.
FWIW, I also needed to install CGLFW3 (which is required by the SwiftGL wrapper).
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: