A1exandr A1exandr - 8 months ago 50
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.


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

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