鉴于群里好多人不懂如何配置,使得可以使用Chrome调试真机上的app.
Xcode Error输出及真机截图:
Runtime is not ready for debugging.
- Make sure Packager server is running.
- Make sure the JavaScript Debugger is running and not paused on a
breakpoint or exception and try reloading again.
Runtime is not ready for debugging. Make sure Packager server is running.
解决方案
在RCTWebSocketExecutor.m
文件中,把localhost
修改为与AppDelegate.m
中相同的IP地址(一般为电脑IP).