Xcode 15 + UI tests: text field timeout

Hello!

Since Xcode 15 came out, I've been having this issue with UI tests where the test runner hangs for 60s when the keyboard is presented.

In the test logs I get this kind of messages:

00:07.588   Wait for com.example.app to idle
01:07.642       App event loop idle notification not received, will attempt to continue.

Interestingly, this only appears to be happening in CI environments (I've tried Xcode cloud and Circle CI). It works fine on my local machine. Everything is fine with Xcode 14, but I can't keep my CI environment stuck on Xcode 14 forever.

I've tried disabling animations using UIView.setAnimationsEnabled(false), but it did not fix the problem.


Here are the full logs of what it takes to fill out a text field:

00:07.156     Fill out  with "Sherlock"
00:07.160         Tap "Authentication.Signup.firstNameField" TextField
00:07.160             Wait for com.example.app to idle
00:07.167             Find the "Authentication.Signup.firstNameField" TextField
00:07.227             Check for interrupting elements affecting "Authentication.Signup.firstNameField" TextField
00:07.283             Synthesize event
00:07.588             Wait for com.example.app to idle
01:07.642                 App event loop idle notification not received, will attempt to continue.
01:07.646         Type 'Sherlock' into "Authentication.Signup.firstNameField" TextField
01:07.646             Wait for com.example.app to idle
02:07.689                 App event loop idle notification not received, will attempt to continue.
02:07.692             Find the "Authentication.Signup.firstNameField" TextField
02:38.724                 Find the "Authentication.Signup.firstNameField" TextField (retry 1)
02:38.916             Check for interrupting elements affecting "Authentication.Signup.firstNameField" TextField
02:39.018             Synthesize event
02:39.363             Wait for com.example.app to idle
02:39.372         Find the "Authentication.Signup.firstNameField" TextField
02:39.527         Find the "Authentication.Signup.firstNameField" TextField
02:39.698         Type '
' into "Authentication.Signup.firstNameField" TextField
02:39.698             Wait for com.example.app to idle
02:39.706             Find the "Authentication.Signup.firstNameField" TextField
02:39.841             Check for interrupting elements affecting "Authentication.Signup.firstNameField" TextField
02:39.942             Synthesize event
02:40.178             Wait for com.example.app to idle

I have the exact same issue. The only lead that I found is this answer on the CircleCI forum which mentions a permission issue on Sonoma: https://discuss.circleci.com/t/severe-performance-problems-with-xcode-15/49205/135

Maybe the same thing happens on Xcode Cloud...

Please file a feedback with the result bundle from your test run so we can track this issue: https://feedbackassistant.apple.com/

Hi! Any new leads on this? With updating our build server to Sequoia/Xcode16.1, we noticed that some test runs are timing out in random places. We run tests on real devices.

The logs show

43.51s Wait for com.example.app to idle 103.56s App event loop idle notification not received, will attempt to continue.

and also

. Failed to get matching snapshots: Unable to perform work on main run loop, process main thread busy for 30.0s

The animation is disabled when running the tests, and the failures are intermittent

Xcode 15 + UI tests: text field timeout
 
 
Q