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 diskspace is working
- Disconnect USB and confirm in Xcode that the iOS device is now connected via WiFi
ios --udid=XXX diskspace eventually 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 diskspace starts 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):
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 list before you disconnect from USB and listed once after even though its unable to connect.
- When you reconnect USB
ios --udid=XXX diskspace continues to work and ios list lists the device twice
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:
ios --udid=XXX diskspaceis workingios --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"}ios --udid=XXX diskspacestarts working againExpected 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):
Smartphone (please complete the following information):
Additional context
ios listbefore you disconnect from USB and listed once after even though its unable to connect.ios --udid=XXX diskspacecontinues to work andios listlists the device twice