iOS device testing for UITest: Failed to get matching snapshot, Lost connection to the application ,but locally passed tests

Bitrise Build Issue Report template

Description of the issue

i configed (beta)ios-device-testing, i just wrote a simple testcase to test if i can finally pass the test,and if i can see the results on Firebase Testlab . but outcome always failed.
i can pass the simple ui testcase locally on my iPhone(xcode11.3 build, iPhone version is iOS13.3), so i have no idea where goes wrong?
i can check test Reports, from the firebase testlab video, i can see my app launched ,but soon crashed. what can i do to figure it out?


Where did the issue happen?

If on which stack? If not on on what operating system? (Plus any other information you can share)

Yes, it is on;
stack: xcode 11.2.x , macOS 10.14.6(Mojave)

Which build Step causes the issue and which version of the step?

(9) virtual-device-testing-for-ios@0.9.10 |
Test results:
Model OS version Orientation Locale Outcome
iphonexs 12.1 portrait en failure

firebase testlab show:

Failed to get matching snapshot: Lost connection to the application (pid 1969). - /Users/vagrant/git/MyappUITests/MyappUITests.swift:38


  • 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) : YES/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. : YES/NO
  • Does the issue happen sporadically, or every time? :
  • Does upgrading the build Step to the latest version help? : YES/NO
  • When did the issue start? :

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 will get when it does a git clone in the clean environment! If possible please note which sections you tried.

Local reproduction: Linux / Android (docker based) stack builds

i can not reproduce it locally.

Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( )? If no, can it be reproduced with Docker (using the same docker images / environment we use on Related guide: .

Build log

Please copy paste the build’s URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - ), with a link to the related Discuss issue.

Hi @yi.zhang!

Can you please include an URL for the build where this happened? Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.