博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【ReactNative】真机上无法调试 could not connect to development server
阅读量:4196 次
发布时间:2019-05-26

本文共 513 字,大约阅读时间需要 1 分钟。

ReactNative 版本 0.27.2  真机调试,一直红屏,报错

could not connect to development server

检测流程:

1.工程目录npm  start  OK

2.AppDelegate.m的localhost换成PC上的IP地址 192.168.0.103,且PC上的地址和手机上的同一局域网 OK

3.xcode提示

WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain

表示连接超时,解决方法RCTWebSocketExecutor.m中的localhost换成PC地址,据说新版本不用换了

Connection to http://localhost:8081/debugger-proxy 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.

 这个世界安静了...

你可能感兴趣的文章
centos单机安装Spark1.4.0
查看>>
java - 日期相减、四舍五入
查看>>
java - mysql连接
查看>>
java - properties read write
查看>>
折腾sparkR
查看>>
Install Python 2/3 on CentOS 6.5 Server
查看>>
PySpark in PyCharm on a remote server
查看>>
virtualbox增强功能-VBoxGuestAdditions安装
查看>>
Linux下安装MySql(版本5.5以上)
查看>>
Virtualbox中Linux添加一个新磁盘
查看>>
胜景之地
查看>>
jar 独立运行文件制作(于windows平台)
查看>>
使用selenium动态爬取
查看>>
在SAS中进行关联规则分析
查看>>
互联网金融产品如何利用大数据做风控
查看>>
数据库基础问答Q&A
查看>>
DeepCopy
查看>>
R语言问题——连接数据库乱码问题解决方案
查看>>
json读取+对象转换+csv读写
查看>>
加密算法比较3DES AES RSA ECC MD5 SHA1等
查看>>