-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot debug JS remotely on iOS device #14288
Comments
Same issue on IOS Phone emulator with React Native version: 0.45.1, on macOS 10.12.5. |
+1 same issue In my case, rm -rf node_modules , yarn again. It works. |
This happens on emulators as well. Same issue at #14672 |
Error I get on simulator:
|
+1 |
I can confirm this happens on versions 0.45.1, 0.44.3, but not on 0.44.0 |
+1 |
1 similar comment
+1 |
+1 |
also present on 0.47 |
+1 for 0.43 and 0.47. Infuriating– cannot test any iOS push notifications. |
I can now duplicate this problem by attempting to debug on my phone's hotspot network. Steps: I am able to get device debugging working reliably on some wifi networks. Could this be a network related problem? Any networking experts out there that can help? |
Was running into this issue on my home network but not my work network and tracked it down to a router setting that was blocking http://xip.io/ from doing it's thing. Specifically the custom Tomato firmware on my router was trying to block DNS rebind attacks and I was able to add xip.io to a whitelist to allow it. Might be worth adding something to the docs about how xip.io is used in the remote debugging process? |
Here is a temporary work around for this issue. Make sure you have a sim card in your iPhone. update: Steps:
|
I know this is a hard one to debug because everyone has different setups but FWIW this was happening to us when we tried to bump RN from 0.42 to 0.47 which we decided not to do because of this issue. Last week we moved from 0.42 to 0.49-rc-5 and it doesn't happen anymore. May be worth trying in 0.49-rc |
I have a similar problem, however when I click I'm using react-native
I was using OpenDNS. Tried Google DNS and had same results. Live reload on physical device works. Why would clicking |
I resolved my issue by cleaning Xcode project |
My workaround:
|
Thank you @rynop this worked for me. I'm using [email protected] right now. |
updating Chrome solved it for me |
using my computers LAN IP did the trick for me. So in my browser, I replaced http://localhost:8081/debugger-ui/ to http://192.168.xxx.xxx:8081/debugger-ui/ |
Description
Create app with
react-native init myapp
Run the app in
Xcode
with real iPhone as target, open up the developer menu and selectdebug js remotely
.App screen on device now stuck at
Loading from pre-bundler file...
In the debugger console log I can see an error:
GET file:///var/containers/Bundle/Application/FB3D960C-BF23-4F8A-B458-A9FFED6AFEF2/myapp.app/main.jsbundle net::ERR_FILE_NOT_FOUND
Additional Information
Observations
On device remote JS debugging
does not work withRCTWebSocketExecutor.m
set tolocalhost
orserver local ip
localhost
, I get the usual red screen error warning I should change the IP inRCTWebSocketExecutor
server local IP
, I don't get the green progress bar when loading the app, instead I have a black bar with the textloading from pre-bundle file
, and it will just get stuck in here foreverGET file:///var/containers/Bundle/Application/FB3D960C-BF23-4F8A-B458-A9FFED6AFEF2/ttt.app/main.jsbundle net::ERR_FILE_NOT_FOUND
The text was updated successfully, but these errors were encountered: