Inconsistent behavior across different test environments and simulators

I'm working on Apple Watch UI tests and have noticed different results between local and Xcode Cloud environments.

I tested all cases locally, and they worked fine. However, when running the tests on Xcode Cloud, some issues caused them to fail:

  • The test requires clicking a button to display the built-in keyboard, but on Xcode Cloud, the keyboard never appears, no matter how long I wait.
  • The app unexpectedly closes during testing, displaying the error message: "Failed to launch application {Your app} is not running."

These failures occurred on two different simulator destinations (Ultra 49mm 11.2 / Series 7 45mm 11.2) and can only be reproduced on specific simulators.

Has anyone encountered a similar issue?

Inconsistent behavior across different test environments and simulators
 
 
Q