You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are encountering instances where devicemanager only sees some of the attached devices (one or two of the four total).
We see all of the devices by running: xcrun xcdevice list 2> /dev/null | jq -r '.[] | select(.simulator == false) | select(.modelCode | tostring | contains("iPhone")) | .name'
They also consistently appear in the devices window of XCode.
The error can be reproduced in run_loop 4.7.0 and 4.8.1 by running the install command:
for x in `xcrun xcdevice list 2> /dev/null | jq -r '.[] | select(.simulator == false) | select(.name | tostring | contains("CDPI")) | select(.modelCode | tostring | contains("iPhone")) | .identifier'`; do [path/to/bin/iOSDeviceManager] install [path/to/application.app] --device-id $x ; done
(replacing [path] values)
We have not seen this issue occur when using run_loop 4.6.0.
Devicemanager states that is gets back 0x0 for the target device, rather than the expected device info.
The issue seems to be random, coming and going without regard to the device.
A couple of additional examples; one iPhone 8, two iPhone 12, one iPhone 13 using run_loop 4.7.0:
iPhone 8 target, only shows the two iPhone 12 devices:
Could not install /private/tmp/4c4985a7-7665-49bd-9005-252e3bca7676/vendor/bundle/ruby/2.7.0/gems/run_loop-4.7.0/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app. iOSDeviceManager says:
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: _SubscribeForMuxNotifications (thread 0x10938d600): returned 0x0.
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: _AMDDeviceAttachedCallbackv3 (thread 0x10938d600): Device 'AMDevice 0x600003d28000 {UDID = 00008101-0012515A2061401E, device ID = 123, location ID = 0x214000, product ID = 0x12a8}' attached.
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: AMDeviceStopSession (thread 0x10938d600): returned 0x0 for device 123
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: AMDeviceStopSession (thread 0x10938d600): returned 0x0 for device 123
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: AMDeviceStopSession (thread 0x10938d600): returned 0x0 for device 123
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: _AMDDeviceAttachedCallbackv3 (thread 0x10938d600): Device 'AMDevice 0x600003d2c5a0 {UDID = 00008101-0001409126B8001E, device ID = 122, location ID = 0x213000, product ID = 0x12a8}' attached.
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: AMDeviceStopSession (thread 0x70000a43f000): returned 0x0 for device 122
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: AMDeviceStopSession (thread 0x10938d600): returned 0x0 for device 122
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: AMDeviceStopSession (thread 0x10938d600): returned 0x0 for device 122
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: AMDeviceStopSession (thread 0x70000a43f000): returned 0x0 for device 118
Sep 14 14:54:22 iOSDeviceManager[48396] <Notice>: AMDeviceStopSession (thread 0x10938d600): returned 0x0 for device 122
Error getting device with ID 381319c078b01c563df0315a2d10026fb2c2769a: (null)
iPhone 12 as target, only shows the iPhone 8 device:
Command generated this output:
Sep 14 14:55:12 iOSDeviceManager[49562] <Notice>: _SubscribeForMuxNotifications (thread 0x11a3d4600): returned 0x0.
Sep 14 14:55:12 iOSDeviceManager[49562] <Notice>: _AMDDeviceAttachedCallbackv3 (thread 0x11a3d4600): Device 'AMDevice 0x6000023b0000 {UDID = 381319c078b01c563df0315a2d10026fb2c2769a, device ID = 125, FullServiceName = 7c:9a:1d:45:44:96@fe80::7e9a:1dff:fe45:4496._apple-mobdev2._tcp.local.}' attached.
Sep 14 14:55:12 iOSDeviceManager[49562] <Notice>: _AMDDeviceAttachedCallbackv3 (thread 0x11a3d4600): Device 'AMDevice 0x6000023bc000 {UDID = 381319c078b01c563df0315a2d10026fb2c2769a, device ID = 124, location ID = 0x230000, product ID = 0x12a8}' attached.
Sep 14 14:55:13 iOSDeviceManager[49562] <Notice>: AMDeviceStopSession (thread 0x11a3d4600): returned 0x0 for device 124
Sep 14 14:55:13 iOSDeviceManager[49562] <Notice>: AMDeviceStopSession (thread 0x11a3d4600): returned 0x0 for device 124
Sep 14 14:55:13 iOSDeviceManager[49562] <Notice>: AMDeviceStopSession (thread 0x70000ca0c000): returned 0x0 for device 124
Sep 14 14:55:13 iOSDeviceManager[49562] <Notice>: AMDeviceStopSession (thread 0x70000ca0c000): returned 0x0 for device 119
Sep 14 14:55:13 iOSDeviceManager[49562] <Notice>: AMDeviceStopSession (thread 0x11a3d4600): returned 0x0 for device 124
Error getting device with ID 00008101-0001409126B8001E: (null)
And an example iPhone 12 using run_loop 4.8.1; four devices attached only one appearing:
Could not install /private/tmp/7e5877f7-c3ed-4800-a4be-04ee30b700b0/vendor/bundle/ruby/2.7.0/gems/run_loop-4.8.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app. iOSDeviceManager says:
Sep 15 12:28:14 iOSDeviceManager[69890] <Notice>: _SubscribeForMuxNotifications (thread 0x1157a6600): returned 0x0.
Sep 15 12:28:14 iOSDeviceManager[69890] <Notice>: _AMDDeviceAttachedCallbackv3 (thread 0x1157a6600): Device 'AMDevice 0x600002414000 {UDID = 14d8fb116bedb9167d2ac6eef19cd12a5ee43777, device ID = 53, location ID = 0x320000, product ID = 0x12a8}' attached.
Sep 15 12:28:14 iOSDeviceManager[69890] <Notice>: AMDeviceStopSession (thread 0x1157a6600): returned 0x0 for device 53
Sep 15 12:28:14 iOSDeviceManager[69890] <Notice>: AMDeviceStopSession (thread 0x1157a6600): returned 0x0 for device 53
Sep 15 12:28:14 iOSDeviceManager[69890] <Notice>: AMDeviceStopSession (thread 0x700001251000): returned 0x0 for device 41
Sep 15 12:28:15 iOSDeviceManager[69890] <Notice>: AMDeviceStopSession (thread 0x1157a6600): returned 0x0 for device 53
Error getting device with ID 00008101-00164C6E0EE9003A: (null)
The text was updated successfully, but these errors were encountered:
We are encountering instances where devicemanager only sees some of the attached devices (one or two of the four total).
We see all of the devices by running:
xcrun xcdevice list 2> /dev/null | jq -r '.[] | select(.simulator == false) | select(.modelCode | tostring | contains("iPhone")) | .name'
They also consistently appear in the devices window of XCode.
The error can be reproduced in run_loop 4.7.0 and 4.8.1 by running the install command:
(replacing [path] values)
We have not seen this issue occur when using run_loop 4.6.0.
Devicemanager states that is gets back 0x0 for the target device, rather than the expected device info.
The issue seems to be random, coming and going without regard to the device.
A couple of additional examples; one iPhone 8, two iPhone 12, one iPhone 13 using run_loop 4.7.0:
iPhone 8 target, only shows the two iPhone 12 devices:
iPhone 12 as target, only shows the iPhone 8 device:
And an example iPhone 12 using run_loop 4.8.1; four devices attached only one appearing:
The text was updated successfully, but these errors were encountered: