Error when clicking on TextField : CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react to catastrophic errors beyond logging them

Hello,
I face an error everytime I want to interact with a TextField. The XCode debug area is showing :

CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react to catastrophic errors beyond logging them

There is no crash, and the text field is working fine.

I am developing for MacOS using a macbook pro Intel from 2019 with Sonoma 14.5 and Xcode 15.4 and I think that I noticed since the release of Sonoma. I was not particularly concerned by it but I noticed that interacting with the textField was leading to severe hang in my app, and micro-hang in the test app and I am wondering is these two issues could be related.

The message is easy to reproduce. Just create a new Project/Application/App using SwiftUI and add a TextField to the ContentView.
When you start app, click or double click on the text field, enter a message and press enter.

import SwiftUI

struct ContentView: View {
    @State var value: String = ""
    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundStyle(.tint)
            Text("Hello, world!")
            TextField(text: $value, 
                      label: {
                Text("Test")
            }
            )
        }
        .padding()
    }
}

Did you notice the same thing ? How I could solve it ?

Thank you

Yes and I don’t know, but would love to find out. :slight_smile:

I have had something similar appear with UITextViews. Never could figure out what it was. Also this will probably get flagged for needing to be on Apple's very useful developer forums.

I have a simple SwiftUI View with two TextFields. When I run the app from Xcode and click in either of the TextFields I get the "beachball" for 5 or 10 seconds and then the cursor appears in the filed and the field has the blue highlight surrounding it. I see the "CLIENT ERROR: TUINS...." message in the console. Very annoying and puzzling.

Yes, as Austin said, since this question is just about Apple's SwiftUI framework, it's off-topic for these forums; please try over at the Apple developer forums.