change: filter non-usb ios devices

This commit is contained in:
debugtalk
2022-11-23 18:05:35 +08:00
parent 5e97351005
commit da1dd26f3b
2 changed files with 9 additions and 3 deletions

View File

@@ -124,6 +124,10 @@ func IOSDevices(udid ...string) (devices []gidevice.Device, err error) {
if u != "" && u != d.Properties().SerialNumber {
continue
}
// filter non-usb ios devices
if d.Properties().ConnectionType != "USB" {
continue
}
deviceList = append(deviceList, d)
}
}