Detox: Detox can't seem to connect to the test app(s)! [IOS]

What happened?

Screen Shot 2022-05-11 at 5 19 24 PM

What was the expected behaviour?

Not run test file

In what environment did this happen?

Detox version: 19.6.9 React Native version: 0.63.4 Node version: 14.18.1 Device model: Mac mini (M1, 2020) iOS version: 12.4 macOS version: 12.3.1 (21E258) Xcode version: 13.3.1 (13E500a) Test-runner (select one): jest-circus / jest+jasmine / mocha / other

Detox logs

Detox logs
     DetoxRuntimeError: Detox can't seem to connect to the test app(s)!

HINT: 

Have you forgotten to call 'device.launchApp()' in the beginning of your test?
Refer to our troubleshooting guide, for full details: https://wix.github.io/Detox/docs/troubleshooting/running-tests#tests-execution-hangs

---
The following package could not be delivered:

{
  type: 'reactNativeReload',
  params: {},
  messageId: -1000
}

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 16 (6 by maintainers)

Most upvoted comments

@2ducanhpham, @danilobuerger, @RichardPetrov, @ivari, @wkoutre, @isilher, and anyone who has experienced this issue, Please update Detox to the latest version (v19.7.0), we have fixed this issue in that version (here).

+1 on this, after updating to Xcode 13.4, on macOS 12.1.

Edit: Tried to repro on another machine, macOS 12.3.1. Tests worked, then upgraded to Xcode 13.4, tests no longer worked (same error as the op and my other machine).

Can also confirm that this fixes the problem. Thanks for the great work @asafkorem

Thanks for the report, I will investigate this issue today.

@asafkorem Just tried it out, and it seems to be working fine on iOS 15.5 with xCode 13.4 🙌

Thanks for this update !

For the meanwhile, please run your tests with a iPhone Simulator with iOS version <= 15.0. We experience some issues with iOS > 15.0 that causes this error.

As mentioned before, this is under investigation and we will update as soon as there’s a solution.

@asafkorem you asked op but I can share my experience – building works fine.