I have an iPhone SE and Watch series 3, I have an application which is able to debugging in other developer machine but when I am trying to debug it, the app is install in iPhone but is rejecting from watch. I went to Xcode -> Window->Device and Simulators-> on the device I am selecting is with error as 'Failed to prepare device for development'. Details of the error is as follows: 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.";
}
--
An unknown error occurred.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653183
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000001)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000012e715e98 DTDKCreateNSErrorFromAMDErrorCode + 272
1 DTDeviceKitBase 0x000000012e74f5dc -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 916
2 DTDeviceKitBase 0x000000012e74ffc8 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 560
3 libdispatch.dylib 0x000000019c46bec0 _dispatch_client_callout + 20
4 libdispatch.dylib 0x000000019c47afb4 _dispatch_lane_barrier_sync_invoke_and_complete + 60
5 DTDeviceKitBase 0x000000012e74fd30 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168
6 IDEiOSSupportCore 0x000000012e5e6a68 __43-[DVTiOSDevice prepareProxiedDevicesAsync:]_block_invoke + 460
7 DVTFoundation 0x0000000102ed87fc __DVT_CALLING_CLIENT_BLOCK__ + 16
8 DVTFoundation 0x0000000102eda220 __DVTDispatchAsync_block_invoke + 680
9 libdispatch.dylib 0x000000019c46a128 _dispatch_call_block_and_release + 32
10 libdispatch.dylib 0x000000019c46bec0 _dispatch_client_callout + 20
11 libdispatch.dylib 0x000000019c4736a8 _dispatch_lane_serial_drain + 620
12 libdispatch.dylib 0x000000019c4742a4 _dispatch_lane_invoke + 404
13 libdispatch.dylib 0x000000019c47eb74 _dispatch_workloop_worker_thread + 764
14 libsystem_pthread.dylib 0x000000019c61789c _pthread_wqthread + 276
15 libsystem_pthread.dylib 0x000000019c6165d4 start_wqthread + 8
);
}