A1exandr A1exandr - 2 years ago 106
iOS Question

`react-native run-ios` opens two debug tabs with error

I'm building an app with react-native for a few months already. Lately, when I start simulator with 'react-native run-ios' two tabs of debugger-ui are opened in a Chrome browser simultaneously and simulator gives error on

Connection to http://localhost:8081/debugger-proxy?...
Closing one tab of debugger-ui and refreshing another one, plus simulator, solves the problem, but I want to figure out the reason why this is happening and solve it completely.

I think that has to do something with simulator rather than react-native itself. Any ideas where to look for solving this issue and why it occurs?

Thanks in advance.

Answer Source

The only way I found to solve this problem is to RESET simulator completely.

Go to Simulator and click on Reset Content and Settings....

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download