Unable to connect iOS devices to the Xcode tool on a Mac

Hi Team, Issue - Unable to connect MDM managed iOS devices to the Xcode tool running on a Mac device for testing iOS apps. Receiving an error: iPhone is not paired with your computer.

Error: iPhone is not paired with your computer Device/App Details :
XCODE version - 14.2 MacOS Ventura - 13.2.1 iOS – 16.4.1

Tried troubleshooting steps:

  1. Tried updating the XCODE to the latest version 15 and with an iOS device running the latest iOS version 17, but the customer informed that it is not specific to one Xcode version, iOS version, or Mac version.
  2. If we remove the MDM, then we can connect to the XCODE Tool. Tried disabling all the iOS restrictions but still receiving the same error.

Note: In general, when we connect an iOS device to a Mac, we receive a prompt on the iOS device screen to Trust this device, but after enrolling the device, we are not receiving this prompt. Any advice.?