Using v8.2 simulator, Cmd+D always show the following error message
[RCTLog][tid:0x7fcc2bf4cb90][RCTRootView.m:68]>WebSocket debugger is not available. Did you forget to include RCTWebSocketExecutor?
Finally, I found the root cause after I tried many different way to solve this problem.
For using Chrome DevTool to debug, iOS project need to import libraries RCTWebSocketDebugger.xcodeproj
and libicucore.dylib
.
In react-native examples, 2048
, Movies
, TicTacToe
doesn't import these two libraries. That's why it always show error message "WebSocket debugger is not available. Did you forget to include RCTWebSocketExecutor?" in console.
+
> Add Other...
> <REACT_NATIVE_ROOT>/Libraries/RCTWebSocketDebugger/RCTWebSocketDebugger.xcodeproj
+
> search RCTWebSocketDebugger.a
> Add
+
> search libicucore.dylib
> Add
http://localhost:8081/debugger-ui
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With