Post

Replies

Boosts

Views

Activity

Reply to XCTest UI Testing; boundElementsByIndex stale the main thread
I'm having the same, it started happening when switching build env to Sonoma. This issue is here for several Xcode and OS X versions and not fixed yet. The outcome is the same for all testing devices and all iOS versions, it only depends on running OS X version - Sonoma. For me it happens when i'm trying to activate the text field inside the presented view controller. Sometimes it may work when you log some info from boundElementsByIndex (seems like it helps to connect properly to the view hierarchy or something) but sometimes it just freezes on the boundElementsByIndex call like it does for you. I can tell you more, I've reworked the UI from UIKit to SwiftUI, completely rewritten all the screen logic and UI and got the same result, so it's not something about your code, XCTest bug. Can you confirm that togethere with Xcode you've updated your os version to Sonoma?
Mar ’24