Tarang Hirani
Tarang Hirani

Reputation: 590

React Native Dev tools on iOS Phone

I am using react-native to build an app. I created a new project yesterday and ran it on my iPone 6s and I could open the developer menu by shaking the device to enable hot reloading.

Today, when I started the app via react-native run-ios and opened the xcodeproject and ran it on my phone, the developer menu had only four options. It did not have the tab for hot reloading.

If I tap the the Debug JS Remotely option, I receive the following error

WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain Code=61 "The operation couldn’t be completed. Connection refused"

Upvotes: 3

Views: 900

Answers (1)

klvs
klvs

Reputation: 1177

I'm not sure which version this feature was released in, but it is no longer neccessary to edit RCTWebSocketExecutor.m. Recent versions of react native use xip.io to configure this. If you are on the same wifi network as the device you should have no issue using remote debugging. Make sure you're on the same wifi network.

Upvotes: 1

Related Questions