Unable to pair my device for development

Hi - I have been trying in vain to connect my iPhone to XCode, would appreciate any suggestions!

I have tried multiple restarts of both my macbook and iPhone and reset the privacy settings (thus prompting the "Trust this Computer?" prompt again - which I accept).

I'm running an iPhone X with iOS 14.4 and a new macbook air with an M1 chip. I have 13.19 GB of free storage on the iPhone.

I am receiving the following error:

Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window.

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.";
}
  • -

The device rejected the pairing attempt.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653035
User Info: {
  DVTRadarComponentKey = 261622;
  MobileDeviceErrorCode = "(0xE8000095)";
  "com.apple.dtdevicekit.stacktrace" = (
0  DTDeviceKitBase           0x000000011eb0d2f8 DTDKCreateNSErrorFromAMDErrorCode + 272
1  DTDeviceKitBase           0x000000011eb46d84 -[DTDKMobileDeviceToken mountDeveloperDiskImage:withError:] + 916
2  DTDeviceKitBase           0x000000011eb4776c
58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]blockinvoke + 556
3  libdispatch.dylib          0x000000019ce20420
dispatchclientcallout + 20
4  libdispatch.dylib          0x000000019ce2eeb0 dispatchsyncinvokeandcompleterecurse + 68
5  libdispatch.dylib          0x000000019ce2e93c dispatchsyncfslow + 176
6  DTDeviceKitBase           0x000000011eb474d8 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 168
7  IDEiOSSupportCore          0x000000011e992924 _28-[DVTiOSDevice attachToken:]blockinvoke5 + 264
8  DVTFoundation            0x000000010309a718 DVTCALLINGCLIENTBLOCK + 16
9  DVTFoundation            0x000000010309c128
DVTDispatchAsyncblockinvoke + 680
10 libdispatch.dylib          0x000000019ce1e8bc
dispatchcallblockandrelease + 32
11 libdispatch.dylib          0x000000019ce20420 dispatchclientcallout + 20
12 libdispatch.dylib          0x000000019ce2379c
dispatchcontinuationpop + 416
13 libdispatch.dylib          0x000000019ce22ec4 dispatchasyncredirectinvoke + 592
14 libdispatch.dylib          0x000000019ce30fac dispatchrootqueuedrain + 356
15 libdispatch.dylib          0x000000019ce317a4 dispatchworkerthread2 + 116
16 libsystem
pthread.dylib       0x000000019cfc9024 pthreadwqthread + 216
17 libsystempthread.dylib       0x000000019cfc7d94 startwqthread + 8
);
}
  • -


System Information

macOS Version 11.1 (Build 20C69)
Xcode 12.4 (17801) (Build 12D4e)
Timestamp: 2021-02-03T15:36:50-05:00
I had this same problem too... at first I thought I'd updated by iPhone to a newer version of iOS than that supported by my Xcode install, but it turned out not to be the problem (14.4).

In the end I just restarted my phone and everything worked fine after that.

Not exactly a scientific solution, but sometimes switching it on and off again really is the best solution... 🤷‍♂️

I am having this same error on a new MBP M1 Max. From time to time I have had the same issue on my MBP 2018. Restarting the phone always seemed to work in that case.

This time doing that doesn't help. I still get the error. Any more ideas?

Make sure you also enable Developer mode on your phone:

Settings -> privacy & security

I am facing the same issue!!!!! even though I have enabled the developer mode and tried to restart many times and 4-5 times reset it, But My iPhone(13/128) not pairing with Xcode 15.4

Unable to pair my device for development
 
 
Q