go-ios
go-ios copied to clipboard
Tunnel broken after switch from USB to WiFi
Describe the bug When an iOS device switches from USB to WiFi the tunnel daemon has to be restarted to access the device again
To Reproduce Steps to reproduce the behavior:
- Configure the iOS device in Xcode to connect over USB or WiFi.
- Connect the iOS device via USB
- Start the tunnel daemon
- Confirm that
ios --udid=XXX diskspaceis working - Disconnect USB and confirm in Xcode that the iOS device is now connected via WiFi
ios --udid=XXX diskspaceeventually fails with the following error:{"err":"NewWithAddrPortTUNDevice: failed to connect to device: ConnectToHttp2WithAddr: failed to dial: dial tcp [fdfc:eb24:7be0::1]:52832: connect: operation timed out","level":"fatal","msg":"could not connect to RSD","time":"2025-05-15T16:28:04+01:00"}- Kill the tunnel daemon and
ios --udid=XXX diskspacestarts working again
Expected behavior Access to the device would continue to work after switching USB to WiFi without having to kill the tunnel daemon
Desktop (please complete the following information):
- OS: macOS
- Version 15.4.1
Smartphone (please complete the following information):
- Device: iPhone XR
- OS: iOS
- Version 18.5
Additional context
- What is strange is that the device is listed twice in
ios listbefore you disconnect from USB and listed once after even though its unable to connect. - When you reconnect USB
ios --udid=XXX diskspacecontinues to work andios listlists the device twice