macOS 12.2.1 m1
Xcode 13.3.1
react-native 0.53.3
修改localhost为本机ip后,可以成功打开http://ip地址/debugger-ui/,但是Get资源http://ip地址/private/var/containers/Bundle/Application/F8532384-6316-4F2E-A4D6-50F822A0CC40/sbc.app/main.jsbundle报错404。(特此记录)
解决ReactNative在iPhone真机调试报错:Connection to http://localhost:8081/debugger-proxy?role=client timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in `RCTWebSocketExecutor.m`.报错如下: 解决办法:在RCTWebSocketExecutor.m文件里面的setup方法里面,修改host为电脑的IP地址,注意要把手机wifi和电脑的WiFi在同一个局域网下