Device debugging broken on iOS 14

I am having issues with debugging my test device after installing iOS 14. Xcode will successfully build the app onto the device, but while attaching debugger it is showing the following error:

Details

An error was encountered while attempting to communicate with this device. (The service is invalid.)
Domain: com.apple.dtdevicekit
Code: -402653150
Failure Reason: Please try rebooting and reconnecting the device. (0xE8000022).
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000012615f6e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x000000012615fde9 DTDKAMDErrorToNSError + 792
2 DTDeviceKitBase 0x0000000126170d0c
63-[DTDKRemoteDeviceConnection startFirstServiceOf:unlockKeybag:]blockinvoke + 301
3 DTDeviceKitBase 0x00000001261704db
48-[DTDKRemoteDeviceConnection futureWithSession:]blockinvoke3 + 22
4 DTDeviceKitBase 0x000000012616215f _DTDKExecuteInSessionblockinvoke2 + 35
5 DTDeviceKitBase 0x0000000126161593 _DTDKExecuteWithConnectionblockinvoke2 + 473
6 DTDeviceKitBase 0x0000000126161391 _DTDKExecuteWithConnectionblockinvoke + 106
7 libdispatch.dylib 0x00007fff728fb658
dispatchclientcallout + 8
8 libdispatch.dylib 0x00007fff729076ec dispatchlanebarriersyncinvokeandcomplete + 60
9 DVTFoundation 0x000000010d5f6110 DVTDispatchBarrierSync + 208
10 DVTFoundation 0x000000010d5cd538 -[DVTDispatchLock performLockedBlock:] + 64
11 DTDeviceKitBase 0x0000000126161292 DTDKExecuteWithConnection + 226
12 DTDeviceKitBase 0x0000000126161fc9 DTDKExecuteInSession + 376
13 DTDeviceKitBase 0x0000000126170410
48-[DTDKRemoteDeviceConnection futureWithSession:]blockinvoke2 + 112
14 DVTFoundation 0x000000010d5f3e7a DVTCALLINGCLIENTBLOCK + 7
15 DVTFoundation 0x000000010d5f5552
DVTDispatchAsyncblockinvoke + 809
16 libdispatch.dylib 0x00007fff728fa6c4
dispatchcallblockandrelease + 12
17 libdispatch.dylib 0x00007fff728fb658 dispatchclientcallout + 8
18 libdispatch.dylib 0x00007fff72900c44
dispatchlaneserialdrain + 597
19 libdispatch.dylib 0x00007fff729015d6
dispatchlaneinvoke + 363
20 libdispatch.dylib 0x00007fff7290ac09 dispatchworkloopworkerthread + 596
21 libsystempthread.dylib 0x00007fff72b55a3d pthreadwqthread + 290
22 libsystem
pthread.dylib 0x00007fff72b54b77 start_wqthread + 15
);
}
  • -

It seems like other people are having this issue as well. This Stack Overflow post seems to highlight the same problem:

https://stackoverflow.com/questions/64439400/debugging-on-ios-14-1-using-xcode-11-3-1-with-ios-14-1-devicesupport-folder-inst

I have the various attempts to fix this issue that are mentioned in the post, but with no success.

I am running Xcode 11.3.1 on Catalina 10.15.7, and my test device is running iOS 14.1. I have tried downgrading my test device back to iOS 13.7, but was unable to do it.

Any advice to get my test device to debugging again?
You should upgrade to Xcode 12.1. Generally, Xcode doesn't know how to talk to devices running iOS versions that didn't exist when that Xcode version shipped. Xcode 12.1 is the first Xcode that supports debugging on iOS 14.1 devices. The exact pairing of Xcode to iOS versions is documented on the Xcode Support page.
Device debugging broken on iOS 14
 
 
Q