I'm getting this error when attempting to upload to my iPhone, I've updated to iOS 15 and using the latest version of xCode:
Details
Failed to prepare device for development.
Domain: com.apple.dtdevicekit
Code: 806
Recovery Suggestion: If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device.
User Info: {
AssociatedMobileDeviceFunction = AMDeviceMountImage;
DVTDeviceErrorIsProxied = 1;
DVTRadarComponentKey = 487927;
NSLocalizedFailure = "This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running.";
}
--
This device is no longer connected.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653052
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000084)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000011d07b546 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x000000011d0b7583 -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 1027
2 DTDeviceKitBase 0x000000011d0b7f97 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 614
3 libdispatch.dylib 0x00007ff809a91306 _dispatch_client_callout + 8
4 libdispatch.dylib 0x00007ff809a9e4bc _dispatch_lane_barrier_sync_invoke_and_complete + 60
5 DTDeviceKitBase 0x000000011d0b7cd1 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 185
6 IDEiOSSupportCore 0x0000000117f72af8 __43-[DVTiOSDevice prepareProxiedDevicesAsync:]_block_invoke + 713
7 DVTFoundation 0x000000010e9235e8 __DVT_CALLING_CLIENT_BLOCK__ + 7
8 DVTFoundation 0x000000010e924d54 __DVTDispatchAsync_block_invoke + 931
9 libdispatch.dylib 0x00007ff809a9010e _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x00007ff809a91306 _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007ff809a97281 _dispatch_lane_serial_drain + 639
12 libdispatch.dylib 0x00007ff809a97d2f _dispatch_lane_invoke + 366
13 libdispatch.dylib 0x00007ff809aa1afa _dispatch_workloop_worker_thread + 758
14 libsystem_pthread.dylib 0x00007ff809c3b132 _pthread_wqthread + 326
15 libsystem_pthread.dylib 0x00007ff809c3a0bf start_wqthread + 15
);
}
--
System Information
macOS Version 12.0 (Build 21A5248p)
Xcode 13.0 (19161.15) (Build 13A5154h)
Timestamp: 2021-06-11T20:13:41+01:00
Anyone got any ideas how to resolve? I've tried restarting my mac and iPhone multiple times, it makes no difference.