Xcode 每秒都会执行一次这个代码,不知道是什么原因.
之前安装了VSCode 来RUN reactNative 项目,结果把Xcode好多设置都给改掉了.
[__nw_connection_get_connected_socket_block_invoke Connection has no connected handler]
解决方法:
- Xcode menu -> Product -> Edit Scheme...
- Environment Variables -> Add -> Name: "OS_ACTIVITY_MODE", Value:"disable"
- Run your app again, done! 这样就没问题了