-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mlaunch not retrieving all device information listed by xcrun devicectl
#22109
Comments
This sounds like developer mode on device is not enabled https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device |
Can you run this:
and then attach the resulting |
Thank you @dalexsoto and @rolfbjarne.
I don't have direct access to the device but I checked Xcode -> Window -> Devices and Simulators and there is no warning about disabled developer mode. Additionally, the following log suggest that developer mode is enabled.
It is a bit difficult to get any files from the lab device manually, I'll try to figure it out. However, I think that similar output can be found from https://helixr1107v0xdeko0k025g8.blob.core.windows.net/xharness-master-6bc91809e7094b48b7/ios-device-System.Buffers.Tests.app/1/list-ios-device-20250203_082615.log?helixlogtype=result , not in json format thought. Let me know if you would need the json specifically.
|
It looks like we don't write a value for IsUsableForDebugging to the output xml when listing devices found using devicectl. Fix in progress: https://dev.azure.com/devdiv/DevDiv/_git/macios-mlaunch/pullrequest/610825 |
We have issues with "newly" updated iPhone lab devices to iOS 17.6 paired with XCode 15.4 (and iOS 18.1 with XCode 16.1) that are not working properly with XHarness (mlaunch). When reporting their status via
xcrun devicectl list devices
we see the device as "available (paired)".However, upon retrieving the device information using mlaunch (v. 1.0.272) in https://github.com/matouskozak/xharness/blob/947b4ce2a0f5f514a11d49dd92c1a644d0c17e75/src/Microsoft.DotNet.XHarness.iOS.Shared/Hardware/HardwareDeviceLoader.cs#L60-L67, we are missing the identifier and device is not enabled for debugging (see https://helixr1107v0xdeko0k025g8.blob.core.windows.net/xharness-master-6bc91809e7094b48b7/ios-device-System.Buffers.Tests.app/1/list-ios-device-20250203_082615.log?helixlogtype=result)
Is there some device configuration option we need to set for the lab devices to make this work or could this be an issue with mlaunch itself?
(We tried replugging and repairing the devies numerous times without any success)
cc: @vitek-karas
The text was updated successfully, but these errors were encountered: