facebook / idb

idb is a flexible command line interface for automating iOS simulators and devices
https://fbidb.io
MIT License
4.54k stars 437 forks source link

No physical devices shown on Macbook with M1 #789

Open AlexeyBudynkov opened 2 years ago

AlexeyBudynkov commented 2 years ago

We use GitHub Issues for bugs.

Description

There are no devices shown on a Macbook with M1 processor. For Mac devices with Intel processors everything is working fine.

Reproduction

There is a XC-test - (void)testConstructsDeviceSet, there it can be checked - deviceSet.allDevices contains no devices, no matter if it's connected or not.

Solution

At this moment I haven't found a workaround.

Additional Information

Last tested on the commit: c61f43aafa951e654bb4f4110b7d26c2d4fce930

PC characteristics: MacBook Pro (16-inch, 2021), Apple M1 Pro OS version: OS Monterey 12.4 (21F79)

AlexeyBudynkov commented 2 years ago

A workaround is to increase timeout from 0.2 to 5.0 in this function in the file main.m static FBFuture<FBDeviceSet *> *DeviceSet(id<FBControlCoreLogger> logger, NSString *ecidFilter)