-
Notifications
You must be signed in to change notification settings - Fork 514
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 fails to list devices (with Apple Watch paired?) #21564
Comments
I'll try to make the code a bit more resilient (work in progress here: https://github.com/xamarin/maccore/pull/2952), I'll let you know when there's a NuGet to try. |
I personally find it odd that watch devices are considered at all when I am trying to enumerate ios-device. Could they just simply be skipped instead? |
We have to connect to the device to figure out it's a watch. In any case, here's a version that should be a bit more resilient, can you try this one?
|
This build seems more stable and the logs show it talking to the devices but for some reason nothing is actually listed as discovered: Logs./mlaunch --listdev --use-device-ctl=false -vv Using Xcode 16.0 found in /Applications/Xcode-16.0.0.app/Contents/Developer Xamarin.Hosting: Xamarin.Hosting Xamarin.Hosting: Version: 2b0f58e6d4 (refs/pull/2952/merge) Xamarin.Hosting: Xcode: /Applications/Xcode-16.0.0.app Xamarin.Hosting: Xcode Version: 16.0 Xamarin.Hosting: Verbosity: 2 2024-11-06 11:14:27.735 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.SpriteKitQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor 2024-11-06 11:14:27.736 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.SpriteKit.GKStateMachineQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor 2024-11-06 11:14:27.750 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.IDEPlaygroundsKit.PlaygroundBottomBarExecutionAdaptor for extension Xcode.IDEPlaygroundEditor.IDEPlaygroundBottomBarExecutionAdaptor of plug-in com.apple.dt.IDEPlaygroundEditorPlugin 2024-11-06 11:14:27.753 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI 2024-11-06 11:14:27.753 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.WatchOS.BundleInfo of plug-in com.apple.dt.IDEWatchSupportUI 2024-11-06 11:14:27.753 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEWatchSupportUI:IDEWatchSupportUI.plugindata/plug-in[1]/extension[11] of plug-in com.apple.dt.IDEWatchSupportUI 2024-11-06 11:14:27.753 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOS.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI 2024-11-06 11:14:27.753 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOSSimulator.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI 2024-11-06 11:14:27.753 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.WatchOS.Bundle of plug-in com.apple.dt.IDEWatchSupportUI 2024-11-06 11:14:27.754 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI 2024-11-06 11:14:27.754 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.IDEiOSSupportCore.iOSDeviceLocatorMapping for extension Xcode.IDEiOSSupportCore.iOSDeviceLocatorMapping.driverkit of plug-in com.apple.dt.IDEDriverKitSupportCore 2024-11-06 11:14:27.754 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEDriverKitSupportUI:IDEDriverKitSupportUI.plugindata/plug-in[1]/extension[2] of plug-in com.apple.dt.IDEDriverKitSupportUI 2024-11-06 11:14:27.755 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEOSXSupportUI:IDEOSXSupportUI.plugindata/plug-in[1]/extension[5] of plug-in com.apple.dt.IDEOSXSupportUI 2024-11-06 11:14:27.756 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Bundle of plug-in com.apple.dt.IDEVisionSupportUI 2024-11-06 11:14:27.756 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEVisionSupportUI:IDEVisionSupportUI.plugindata/plug-in[1]/extension[5] of plug-in com.apple.dt.IDEVisionSupportUI 2024-11-06 11:14:27.756 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Framework of plug-in com.apple.dt.IDEVisionSupportUI 2024-11-06 11:14:27.756 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Application of plug-in com.apple.dt.IDEVisionSupportUI 2024-11-06 11:14:27.757 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.appletvos.BundleTargetInfo of plug-in com.apple.dt.IDEAppleTVSupportUI 2024-11-06 11:14:27.757 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI 2024-11-06 11:14:27.757 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEAppleTVSupportUI:IDEAppleTVSupportUI.plugindata/plug-in[1]/extension[11] of plug-in com.apple.dt.IDEAppleTVSupportUI 2024-11-06 11:14:27.757 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DeviceIconProvider for extension Xcode.DebuggerFoundation.DeviceIconProvider.AppleTV of plug-in com.apple.dt.IDEAppleTVSupportUI 2024-11-06 11:14:27.757 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATVSimulator.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI 2024-11-06 11:14:27.757 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.appletvos.Bundle of plug-in com.apple.dt.IDEAppleTVSupportUI 2024-11-06 11:14:27.757 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATV.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI 2024-11-06 11:14:27.757 mlaunch[10454:216387] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI Xamarin.Hosting: Device discovery started Xamarin.Hosting: Device discovery event: Connected (a30eb9b2916eb79ffc490fa27b5993c84596622d) Xamarin.Hosting: Device discovery event: GizmoPaired (00008006-001174960C03402E) Xamarin.Hosting: Device discovery event: Connected (00008006-001174960C03402E) Xamarin.Hosting: Connected to (a30eb9b2916eb79ffc490fa27b5993c84596622d) in 00:00:00.0019624 Xamarin.Hosting: Connected to (00008006-001174960C03402E) in 00:00:00.0023353 Failed to start session on : Missing Pair Record Error (error: 0xe8000025) Xamarin.Hosting: Connecting to '', token is 0x7fae7825fe30 Xamarin.Hosting: Connected to '' Xamarin.Hosting: Failed to get value 'DeveloperStatus' from the device a30eb9b2916eb79ffc490fa27b5993c84596622d: Missing Value Error (error: 0xe8000015) Xamarin.Hosting: Failed to get value 'EnableWifiDebugging' from the device a30eb9b2916eb79ffc490fa27b5993c84596622d: Missing Value Error (error: 0xe8000015) Xamarin.Hosting: Failed to get value 'WirelessHosts' from the device a30eb9b2916eb79ffc490fa27b5993c84596622d: Missing Value Error (error: 0xe8000015) Furthermore the default of using devicectl is hairy. There is no way that I can see to pass the argument to not use it from xharness, so no devices show up from xharness. devicectl requires iOS 17.0 as far as I can tell but this device is iOS 16.x and EoL (can't get iOS 17). |
We're using both devicectl and the old method to find devices, so there's no need to disable devicectl. Disabling devicectl will only prevent new devices from being listed.
That said, it looks like the device isn't paired with the Mac. Does it show up in Xcode? And if it shows up in Xcode, try again with mlaunch, sometimes Xcode automatically fixes problems. |
Ugh sorry github once again showed things differently in the preview so my "redactions" are all invisible. That missing pair record is referring to the watch device, not the phone. Furthermore when the older version of mlaunch (1.0.256) runs it will correctly output two devices when it does not throw an exception (showing IsPaired: false for the watch). This is all while the same device is plugged in. The new version simply doesn't report anything. Here is what I believe to be the relevant parts of the two logs: 1.0.256 (non-exception run)
1.0.266 (PR version)
Note that it's pretty much identical except for the lack of device output. |
Apple platform
iOS
Framework version
net8.0-*
Affected platform version
.NET 8.0.403 xHarness 8.0.0-prerelease.24529.2 Xamarin.Launcher 1.0.256 (refs/heads/main: ad4af9cde4)
Description
Various ios-device based xharness commands are being extremely flaky (i.e. at least 50% fail rate) with the following
Steps to Reproduce
Run
xharness apple device ios-device
several timesI believe this may require an Apple Watch to be paired with a connected iOS device
Did you find any workaround?
Power off the Apple Watch(Nevermind, even THIS doesn't stop it)Relevant log output
The text was updated successfully, but these errors were encountered: