NSTextView reverts to TextKit 1 when opening view debugger

Number:rdar://FB13360533 Date Originated:2023-11-11
Status:Closed Resolved:Yes
Product:Xcode Product Version:Version 15.0 (15A240d)
Classification:Incorrect/Unexpected Behavior Reproducible:
When opening Xcode's view debugger, all text views in the app are forced into TextKit 1 mode.

To reproduce:
- From Xcode, run an app with a NSTextView instance running in TextKit 2 mode.
- In Xcode, open the view debugger.
- The text view is now in TextKit 1 mode.

Attached is a repro project: just run it, open the view debugger, and you'll get a “📝 Switching to TextKit 1” message in the console.


Resolved in Xcode 16.0 beta 2 (16A5171r)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!