gpt4 book ai didi

ios - react native NSPOSIXErrorDomain Code=61 "Connection refused"

转载 作者:可可西里 更新时间:2023-11-01 03:29:02 29 4
gpt4 key购买 nike

我正在尝试使用离线包将 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`.

最佳答案

错误的最后一行提示您在哪里查看:

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.

附加信息:

To debug on a real device: Open the file RCTWebSocketExecutor.m and change localhost to the IP address of your computer. Shake the device to open the development menu with the option to start debugging.

更好的是,查看 Facebook 为 Running On Device 提供的文档.

关于ios - react native NSPOSIXErrorDomain Code=61 "Connection refused",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33709933/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com