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真機調(diào)試報錯: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在同一個局域網(wǎng)下