【ReactNative】真机上无法调试 could not connect to development server
2016-07-21 22:51
671 查看
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.
这个世界安静了...
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.
这个世界安静了...
相关文章推荐
- KDE Connect —— 让 Android 手机成为 KDE 桌面的一部分
- Can't connect to MySQL server on 'localhost' (10048)问题解决方法
- Oracle中的Connect/session和process的区别及关系介绍
- php运行提示Can't connect to MySQL server on 'localhost'的解决方法
- MySQL错误ERROR 2002 (HY000): Can't connect to local MySQL server through socket
- 分析Node.js connect ECONNREFUSED错误
- NodeJS学习笔记之Connect中间件模块(二)
- NodeJS学习笔记之Connect中间件模块(一)
- NodeJS学习笔记之Connect中间件应用实例
- Android 区别真机和模拟器的几种方法
- Can't connect to MySQL server on localhost (10061)解决方法
- ReactNative细节汇总
- code-push 交互式命令行脚本
- 8. react-native-android之----模拟手机百度feed流
- 9. react-native-android之----reactjs基础
- 1. react-native-ios之----20分钟搭建环境
- MySQL性能参数详解之Max_connect_errors 使用介绍
- [网络开发]RakNet文档翻译(2)——Connecting
- 如何在真机上调试Android应用程序(图文详解)