[Debug in Chrome]真机

鉴于群里好多人不懂如何配置,使得可以使用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.
[Debug in Chrome]真机_第1张图片
IMG_1538.PNG

解决方案

RCTWebSocketExecutor.m文件中,把localhost修改为与AppDelegate.m中相同的IP地址(一般为电脑IP).

你可能感兴趣的:([Debug in Chrome]真机)