React native NSPOSIXErrorDomain Code = 61"Connection refused"

Ric*_*edt 7 iphone ios reactjs react-native

我正在尝试使用脱机捆绑包将React Native应用程序部署到我的手机上.我之前没有为ios开发过,也不确定在哪里查找此错误.是的,我的应用程序名为"ReactNativeTest",我不知道Xcode会创建一个名为"ReactNativeTestTests"的文件夹哈哈.

那我应该从哪里开始这个问题呢?

2015-11-14 15:58:36.637 [error][tid:com.facebook.React.WebSocketExecutor][RCTWebSocketExecutor.m:127] 

WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused"
2015-11-14 15:58:36.686 reactNativeTest[5240:2439923] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x136f60520 V:|-(20)-[UIInputSetContainerView:0x136f5f8b0]   (Names: '|':UITextEffectsWindow:0x136f5ece0 )>",
    "<NSLayoutConstraint:0x136e2fc60 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x136f5f8b0]   (Names: '|':UITextEffectsWindow:0x136f5ece0 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x136f60520 V:|-(20)-[UIInputSetContainerView:0x136f5f8b0]   (Names: '|':UITextEffectsWindow:0x136f5ece0 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-11-14 15:58:38.625 [error][tid:com.facebook.react.RCTBridgeQueue][RCTWebSocketExecutor.m:70] 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`.
Run Code Online (Sandbox Code Playgroud)

o15*_*1s2 7

错误的最后一行为您提供了一个提示:

连接到http:// localhost:8081/debugger-proxy超时.你在运行节点代理吗?如果您在设备上运行,请检查您是否拥有正确的IP地址RCTWebSocketExecutor.m.

附加信息:

要在真实设备上进行调试:打开文件RCTWebSocketExecutor.m并将localhost更改为您计算机的IP地址.摇动设备以打开开发菜单,并选择开始调试.

更好的是,查看Facebook为"在设备上运行"提供的文档.