简体   繁体   English

在iOS手机上反应Native Dev工具

[英]React Native Dev tools on iOS Phone

I am using react-native to build an app. 我使用react-native来构建应用程序。 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. 我昨天创建了一个新项目并在我的iPone 6s上运行它,我可以通过摇动设备打开开发人员菜单以启用热重新加载。

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. 今天,当我通过react-native run-ios启动应用程序并打开xcodeproject并在我的手机上运行它时,开发人员菜单只有四个选项。 It did not have the tab for hot reloading. 它没有热重新加载的标签。

If I tap the the Debug JS Remotely option, I receive the following error 如果我点击Debug JS Remotely选项,我收到以下错误

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

I'm not sure which version this feature was released in, but it is no longer neccessary to edit RCTWebSocketExecutor.m . 我不确定该功能的发布版本,但不再需要编辑RCTWebSocketExecutor.m Recent versions of react native use xip.io to configure this. 最新版本的react native使用xip.io来配置它。 If you are on the same wifi network as the device you should have no issue using remote debugging. 如果您使用与设备相同的wifi网络,则使用远程调试应该没有问题。 Make sure you're on the same wifi network. 确保你在同一个wifi网络上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM