React-Native - 无法连接到开发服务器(iOS模拟器)
问题描述:
Error:
Could not connect to develpment 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://127.0.0.1:8081/index.ios.bundle?platform=ios&dev=true
我肯定是在运行npm start。为什么不这样跑?React-Native - 无法连接到开发服务器(iOS模拟器)
现在我看到了这个错误:
In file included from /Users/*******/f8app/node_modules/react-native-fbsdk/ios/RCTFBSDK/core/RCTFBSDKAccessToken.m:19:
/Users/*********/f8app/node_modules/react-native-fbsdk/ios/RCTFBSDK/core/RCTFBSDKAccessToken.h:21:9: fatal error:
'FBSDKCoreKit/FBSDKCoreKit.h' file not found
#import <FBSDKCoreKit/FBSDKCoreKit.h>
答
项目是否在Xcode中创建成功吗?
你有没有仔细检查被Facebook提到的这些步骤:
- 确保了Facebook SDK框架安装在 〜/文档/ FacebookSDK。
- 确保FBSDK [核心,登录,共享] Kit.framework显示在您的构建目标的Build 阶段的 链接二进制文件库部分。
- 确保〜/ Documents/FacebookSDK位于构建目标的构建设置的框架搜索 路径中。 (https://github.com/facebook/react-native-fbsdk)
我自己有一些烦恼与最后一步,但在一个新的项目后重试工作的所有罚款
答
如果项目构建不成功,你可能想试试这个。 你应该先更新现有FBSDK(如果有的话)
您可以访问在浏览器的网址? –
不,它拒绝连接:127.0.0.1拒绝连接。 – user1072337
但是,我能够到达http:// localhost:8080/dashboard/apps和http:// localhost:8080/graphql就好了,那些出现了。 – user1072337