Hi,
have anyone experienced such a behaviour of Xcode that when a device is connected, XCode starts randomly freezing displaying beach ball and when I disconnect the device, it crashes showing attached error log. I've tried reinstalling Xcode, removing derived data, ios support, disabling network connection with device, unpairing device.
Xcode Error Log - https://developer.apple.com/forums/content/attachment/3f2a0b71-4d5e-4b28-8611-389032ad1d79