Failed to prepare device for development.

When using XCode, I get an error that tells me that my device failed to prepare for development. I use an iPhone 11 15.1 and XCode is 13.1. All of my software is up to date and I have restarted and disconnected many times. I have also unpaired my device. I can not get my device to connect.

What is the exact message ? Failed of busy ?

With a similar problem, I found initial advice here:

https://stackoverflow.com/questions/46316373/fixing-xcode-9-issue-iphone-is-busy-preparing-debugger-support-for-iphone

To solve the problem,

  • I rebooted everything.
  • When opening Windows > Devices, iPhone was stated as busy.
  • After 10’, that was cleared.
Failed to prepare device for development.
 
 
Q