简体   繁体   English

React本机ios远程js调试器不可用

[英]React native ios remote js debugger unavailable

The code compiles fine and runs the app as expected and the debugger works fine on android. 代码编译正常并按预期运行应用程序,调试器在android上正常工作。 RCTWebSocket is present in ios libraries and compiles and runs fine. RCTWebSocket存在于ios库中并编译并运行良好。 I've tried everything I could think of: 我已经尝试了我能想到的一切:

  1. Reinstall xcode. 重新安装xcode。
  2. Yarn clean 纱线干净
  3. Downgrade emulator version 降级模拟器版本
  4. Downgrade RN and Node version. 降级RN和Node版本。
  5. Kill a dragon and others. 杀死龙和其他人。

单击Remote JS Debugger Unavailable后

Was not able to get rid of the bug but here's a workaround that might help someone: 1) Kill the packager and restart it and run the app. 无法摆脱这个错误,但这里有一个可能有助于某人的解决方法:1)杀死打包器并重新启动它并运行应用程序。 2) Press cmd + D before the packager fully loaded and provided the js files, there is a time window when the debug option is available. 2)在打包器完全加载之前按cmd + D并提供js文件,当调试选项可用时,有一个时间窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM