我们能够在我们的大多数机器上启动 xcuitrunner。在一台机器上,我们仍然得到以下异常:
Unhandled Exception: System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: No connection could be made because the target machine actively refused it: [_IP ADDRESS]:27015
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapShot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
at System.Net.Sockets.Socket.Connect(String host, Int32 port)
at Quamotion.Devices.iOS.Managed.MuxerDeviceClient.Connect(Boolean forceTcp, String muxerHost, Int32 muxerPort)
at Quamotion.Devices.iOS.Managed.MuxerDeviceClient.ListDevices(CancellationToken cancellationToken)
at XcuitRunner.Program.<>c__DisplayClass5_1.<Main>b__2()
at Microsoft.Extension.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at XcuitRunner.Program.Main(String[] args)
Apple Mobile Device Service 正在运行,iTunes 和类似的工具idevicesyslog
可以很好地看到该设备。
这个错误有解决办法吗?
太奇怪了!能否分享以下信息:
netstat -a -p tcp
吗netstat -a -p tcpv6
?服务是否在端口 27015 上侦听?在 127.0.0.1 或 ::1 上?ping localhost
吗ping -4 localhost
?它是否在工作和不工作的机器上提供不同的输出?