go-ios icon indicating copy to clipboard operation
go-ios copied to clipboard

bug: device appears twice for `ios list`

Open doronz88 opened this issue 3 years ago • 3 comments

Testing env macOS Monterey 12.0.1 (21A559) CLI version: v1.0.32

What happened When connecting a single device via USB I get the following result:

➜  /tmp ~/Downloads/ios list --details | jq
{
  "deviceList": [
    {
      "Udid": "<UDID>",
      "ProductName": "iPhone OS",
      "ProductType": "iPhone8,1",
      "ProductVersion": "14.2"
    },
    {
      "Udid": "<SAME UDID>",
      "ProductName": "iPhone OS",
      "ProductType": "iPhone8,1",
      "ProductVersion": "14.2"
    }
  ]
}

P.S. I recommand using an issue template for an easier bug reporting process

doronz88 avatar Nov 18 '21 09:11 doronz88

Hm is it maybe related to the device being on wifi? I think then it can show up twice, once for usb and once for wifi. If that is the case, I will add some property to the list so you can see which one is which-

Good point with the issue template, I'll add it!

danielpaulus avatar Nov 19 '21 14:11 danielpaulus

The device's WiFi is turned off. Also, on other devices this works well. I don't know the reason why this happens. With pymobiledevice3 it doesn't

doronz88 avatar Nov 24 '21 08:11 doronz88

Can you try running go-ios listen and check if it has the same issue?

danielpaulus avatar Nov 26 '21 19:11 danielpaulus