XcodesOrg / XcodesApp

The easiest way to install and switch between multiple versions of Xcode - with a mouse click.
MIT License
6.75k stars 294 forks source link

xcrun for Xcode 14.3 doesn't list iOS 16.4 devices #402

Open rivella50 opened 1 year ago

rivella50 commented 1 year ago

Describe the bug From Xcode 14.3 on physical devices with iOS >= 16.4 are not listed anymore when calling xcrun xcdevice list on the command line. Since i develop Flutter apps i deploy them in the IDE IntelliJ, which seems to use this or a similar command to populate the target device selector box, and this one also doesn't show the mentioned devices anymore. Some other users also seem to have this problem (see e.g. https://developer.apple.com/forums/thread/729395). Apple told me they were not able to reproduce this issue on their side. The workaround so far was to go back to Xcode 14.2 where this issue doesn't occur, but sooner or later this has to work for newer combinations of Xcode and iOS again.

What's interesting:

When using an observe (xcrun xcdevice observe --both) i get this feedback:

Listening for all devices, on both interfaces.
2023-06-15 08:01:01.800 xcdevice[60548:9622744] Requested but did not find extension point with identifier Xcode.DVTFoundation.DevicePlatformMapping
2023-06-15 08:01:01.801 xcdevice[60548:9622744]  DTDeviceKit: Couldn't find platform for (null): (null) for iPhone12,8 (and no hard-coded fallback could be found); falling back to iOS failed because the platform is not present
Attach: 00008030-000212610132802E

In my opinion the problem occurs around the command line tools for xcrun/xcdevice and there is some information or mapping missing when using xcrun xcdevice list for newer versions of Xcode and iOS, and perhaps Xcodes app is missing to load/set that configuration/info when switching to an Xcode version >= 14.3.

To Reproduce I'm not sure if this is a problem with the Xcodes app, but it would be great if other users could try if the problem arises on their machines as well when using Xcodes. Just install an Xcode version >= 14.3 using Xcodes, enable it, connect a device with iOS >= 16.4 and call xcrun xcdevice list on the command line. Please ensure that your xcrun version is >= 64 with xcrun --version. On my machine that device does not show up in the resulting list.

Expected behavior Devices with iOS >= 16.4 should be listed.

Version

Thanks for testing this behaviour and if someone has an idea what could be wrong or missing on my machine please let me know.