iOS Ui test: Failed to get matching snapshot: Lost connection to the application

ios
#1

Bitrise Build Issue Report template

Description of the issue

Our iOS project XCUITest suites fails to run in Bitrise. According to the logs the app fails to launch on the simulators but also the XCUITest server is unable to find the app bundle.

Please describe the issue here
Run the test workflow
Application launches
Enter credentials
Press Log In
Application fails

Second run in the test
App fails to launch

Environment:

Where did the issue happen?
Can only repro the issue in Bitrise
Xcode 12.1.x MAC OS 10.15.6 Elite

Which build Step causes the issue and which version of the step?
XCode Test For iOS

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO

  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO

  • Does the issue happen sporadically, or every time? : EVERY TIME

  • Does upgrading the build Step to the latest version help? : NO

  • When did the issue start? : November 3rd after updating one of our Pods.

Local reproduction

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.
IT CANNOT BE REPRO LOCALLY with Bitrise CLI bitrise run [workflow]

Build log

Failed to get matching snapshot: Lost connection to the application (pid 7805). (Underlying Error: Couldn’t communicate with a helper application. Try your operation again. If that fails, quit and relaunch the application and try again. The connection to service on pid 0 created from an endpoint was invalidated.)

_Please copy paste the build’s bitrise.io URL here (or if the issue happens somewhere else then the full logs),
https://app.bitrise.io/build/6bb7df1a9818390d#?tab=log

Also reported in April

0 Likes