question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
asafkoremcommented, May 25, 2022

@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).

5reactions
ivaricommented, May 18, 2022

+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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dealing With Problems With Running Tests | Detox
You might have forgotten to run device.launchApp() in the beginning of your test. · The app might have crashed before Detox has had...
Read more >
Detox react-native build success, "Detox can't seem to connect ...
react-native app running in iOS Simulator. detox test -c ios leads to: detox[72935] ERROR: [APP_UNREACHABLE] Detox can't seem to connect to ...
Read more >
React Native development tools - Part 3: Testing tools - Pusher
We'll be using a pre-created React Native app to implement the tools. ... We don't have to do a lot of that in...
Read more >
React Native end-to-end testing with Detox - LogRocket Blog
For the sake of brevity, we'll only focus on the iOS flow. Let's get started! You can access the full code for this...
Read more >
React Native E2E Tests with Detox and Mocha
React Native app running an End to End test with Detox. For a long time, I thought that automated tests were unnecessary, that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found