[React Native iOS真机运行输出]Could not connect to development server.
2016-05-18 15:50
639 查看
Could not connect to development server. Ensure the following:
- Node server is running and available on the same network - run ‘npm start’ from react-native root
- Node server URL is correctly set in AppDelegate
URL: http://localhost:8081/index.ios.bundle?platform=ios&dev=true
- Node server is running and available on the same network - run ‘npm start’ from react-native root
- Node server URL is correctly set in AppDelegate
URL: http://localhost:8081/index.ios.bundle?platform=ios&dev=true
解决办法:
1.把AppDelegate.m里面的localhost改为你Mac的IP地址(获取方式:系统偏好设置-网络)。
2.确定你的Mac和手机连接的是同一个网络。
相关文章推荐
- 使用Gulp和Browserify来搭建React应用程序
- React Native那些事
- reactJS的return里面不要有分号
- [转载]React.js 2016 最佳实践
- React和Redux的连接react-redux
- Reactor模式与Proactor模式
- Reactor模式和Proactor模式
- React学习笔记
- 初识React,Virutal DOM, State以及生命周期
- ReactiveCocoa核心方法bind(绑定)
- ReactNative 使用微软的CodePush进行热更新,继续填坑
- ReactNative浅谈
- React-native windows下android开发入门
- ReactNative 当前url和cookies的获取
- ReactNative 适合初学的第一个教程demo,找租房
- ReactJS读书笔记:DOM操作
- ReactJS学习笔记:感想 - 为什么说Virtual DOM 是React的精髓所在
- ReactJS学习笔记:表单
- ReactJS学习笔记:动画
- ReactNative 从环境和第一个demo说起,填坑教程