2015-11-14 21 views
5

Sto tentando di distribuire l'app React Native sul mio telefono con un pacchetto offline. Non ho sviluppato per iOS prima e non sono sicuro di dove cercare questo errore. E sì, la mia app si chiama "ReactNativeTest", non sapevo che Xcode avrebbe creato una cartella chiamata "ReactNativeTestTests" haha.React nativo NSPOSIXErrorDomain Code = 61 "Connessione rifiutata"

Quindi dove dovrei iniziare con questo problema?

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`. 

risposta

6

L'ultima riga dell'errore ti dà un suggerimento dove guardare:

Collegamento a http://localhost:8081/debugger-proxy scaduta. Sei il proxy del nodo attivo ? Se si sta eseguendo il dispositivo, verificare se l'indirizzo IP ha l'indirizzo IP corretto in RCTWebSocketExecutor.m.

Ulteriori informazioni:

Per eseguire il debug su un dispositivo reale: Aprire il file RCTWebSocketExecutor.m e cambiamento localhost con l'indirizzo IP del vostro computer. Scuoti il ​​dispositivo per aprire il menu di sviluppo con l'opzione per avviare il debug.

Ancora meglio, controllare la documentazione fornita da Facebook per Running On Device.

+0

C'è un problema sollevato per questo problema. La descrizione può essere vista e tracciata qui https://github.com/facebook/react-native/issues/1429 – Dan

1

Ho riscontrato problemi prima in cui l'indirizzo IP era errato, ma più di recente non ero stato in grado di risolvere questo problema fino a quando non ho semplicemente spento il Wi-Fi e poi riaccesi.

Stessa rete. Lo stesso IP. Chissà perché, ma ha funzionato per me ¯_ (ツ) _/¯

+0

Lo stesso qui, grazie! –

Problemi correlati