Search code examples
iosiphonexcodeconnectiondevice

Failed to prepare device for development. XCode 13.2.1, iOS 15.1


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

Failed to prepare device for development.


Solution

  • This answer helped me where you:

    • Open XCode and device manager
    • Connect the device
    • Shutdown the device while being connected
    • Power on the device
    • Wait till the device is processed by XCode in devices and simulator window