title: Failed to prepare device for development. XCode 13.2.1, iOS 15.1
body: <p>After upgrading the mac OS and XCode to 13.2.1 and iPhone to 15.1, the device stopped connecting to the mac. It kept showing the error as</p>
  <blockquote>
  <p>Failed to prepare device for development.</p>
  </blockquote>