`react-native 运行-ios` 打开两个错误的调试选项卡

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

我已经ui使用 react-native 开发一个应用程序几个月了。最近,当我用 'react-native run-ios' 两个 选项卡启动模拟器时 debugger-ui 在 Chrome 浏览器和 simulatorConnection to http://localhost:8081/debugger-proxy?... 上同时给出错误。 关闭 debugger-ui 的一个选项卡并刷新另一个选项卡,加上 simulator,解决了问题,但我想弄清楚发生这种情况的原因并彻底解决它。

我认为这与 simulator 而不是 react-native 本身有关。在哪里寻找解决此问题的任何想法以及它为什么会发生?

提前致谢。

我发现解决这个问题的唯一方法是完全重置模拟器。

转到 Simulator 并单击 Reset Content and Settings...