Failed to prepare the device for development.

Hi Apple Forums,

I'm brand new to ios development so if I'm missing any useful context please let me know.

I'm trying to get started with Flutter - https://docs.flutter.dev/get-started/install/macos

I've installed Xcode from the app store Version 14.2 (21534) (Build 14C18). My Macbook is older, 2015, but it's running Monterey 12.6.7 (Build 21G651). I've setup developer mode on my iPhone 13 ios 16.5.1(c) I've rebooted both Macbook and iPhone.

When I go to Devices and Simulators, I get the following error message.

This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility.

Some digging and I found these additional details

Details

Failed to prepare the device for development.
Domain: com.apple.dtdevicekit
Code: 806
Recovery Suggestion: This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility.
User Info: {
    AssociatedMobileDeviceFunction = AMDeviceMountImage;
    DVTErrorCreationDateKey = "2023-07-19 20:29:57 +0000";
    DVTRadarComponentKey = 487927;
    NSLocalizedFailure = "Could not support development.";
}
--
Could not support development.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653066

Any clues on how I might be able to prepare my device for development?

Im seeking help on the same issue but I got 14.3 Xcode and 16.5 OS on my IPAD. I realize that I may need to upgrade to Xcode 15 in order to get both to connect properly

Failed to prepare the device for development.
 
 
Q