My iPhone 15 Pro annoyed me by always connecting to Xcode automatically. This worked for me in getting of this device from the automatic perspective of Xcode:
Be sure the device is not connected with a USB cable. In the Devices and Simulators window, you should have some kind of a round "network" icon to the right of the device's name.
Right-click on the device and choose Unpair Device from the menu.
At least in my case, the iPhone 15 Pro disappeared from the Xcode sidebar and didn't appear again upon restarting Xcode.
When I actually wanted to connect this device to work with it, I connected it with a USB-C cable and Xcode worked perfectly with it.
Your mileage may vary.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: