FailedToConnectToDTServiceHubError

Hello,

I'm new to the xCode so the question might seem trivial.

However I haven't came across any solutions to my problem and tried literally everything.

I'm not able to preview any content on the canvas. Keep getting an error saying:

FailedToConnectToDTServiceHubError: Cannot connect to iPhone 12

Try disconnecting and reconnecting the device.

iPhone 12 { }: connection attempt #1154

It's not the matter of previewing it on any device just wish to preview it inside the editor so I can work faster. The simulator is working just fine.

Please, did anybody experience any similar issues?

I can provide a report of the issue for the further verification.

Kind regards,

Hugo Czerniawski

Hi,

Sorry to hear you are having problems getting previews working.

Best next step will be to file a feedback with diagnostics. We will need the diagnostics Xcode Previews generates in order to make sure we understand the error the previews system is encountering.

If you are having issues with macOS, catalyst or on-device iOS previews then download and install the logging profile for your device. Instructions and profiles are available here: https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift Attach the sysdiagnose to the radar as well as the diagnostics using the instructions below.

Then when you get an error in Xcode Previews, an error banner appears in the canvas

  1. Click the "Diagnostics" button in that banner
  2. In the sheet that appears, click "Generate Report" in the bottom left of the sheet
  3. Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)
FailedToConnectToDTServiceHubError
 
 
Q