Failed to start remote service on device

I am unable to get applications to run on a physical iPhone 11 device from xcode. They work fine when the target is a simulator.


I am using the inital myapp to test this for simplicity.


The apps are successfully loaded on the physical iPhone and can be manually run with no problem.

The following error is given when xCode tries to run them (perhaps a firewall issue?):


Failed to start remote service on device.

Domain: com.apple.dtdevicekit

Code: 811

Recovery Suggestion: Please check your connection to your device.

User Info: {

DVTRadarComponentKey = 261622;

}

--

The service is invalid.

Domain: com.apple.dt.MobileDeviceErrorDomain

Code: -402653150

User Info: {

DVTRadarComponentKey = 261622;

MobileDeviceErrorCode = "(0xE8000022)";

"com.apple.dtdevicekit.stacktrace" = (

0 DTDeviceKitBase 0x000000011d7c983d DTDKCreateNSErrorFromAMDErrorCode + 204

1 DTDeviceKitBase 0x000000011d7db171 __63-[DTDKRemoteDeviceConnection startFirstServiceOf:unlockKeybag:]_block_invoke + 564

2 DTDeviceKitBase 0x000000011d7da839 __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_3 + 22

3 DTDeviceKitBase 0x000000011d7cbe04 __DTDKExecuteInSession_block_invoke_2 + 35

4 DTDeviceKitBase 0x000000011d7cb214 __DTDKExecuteWithConnection_block_invoke_2 + 473

5 DTDeviceKitBase 0x000000011d7cb012 __DTDKExecuteWithConnection_block_invoke + 106

6 libdispatch.dylib 0x00007fff6a85150e _dispatch_client_callout + 8

7 libdispatch.dylib 0x00007fff6a85d567 _dispatch_lane_barrier_sync_invoke_and_complete + 60

8 DVTFoundation 0x0000000103280584 DVTDispatchBarrierSync + 208

9 DVTFoundation 0x0000000103256edf -[DVTDispatchLock performLockedBlock:] + 64

10 DTDeviceKitBase 0x000000011d7caf13 DTDKExecuteWithConnection + 226

11 DTDeviceKitBase 0x000000011d7cbc6e DTDKExecuteInSession + 376

12 DTDeviceKitBase 0x000000011d7da67a __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_2 + 131

13 DVTFoundation 0x000000010327da10 __DVT_CALLING_CLIENT_BLOCK__ + 7

14 DVTFoundation 0x000000010327f652 __DVTDispatchAsync_block_invoke + 1194

15 libdispatch.dylib 0x00007fff6a850583 _dispatch_call_block_and_release + 12

16 libdispatch.dylib 0x00007fff6a85150e _dispatch_client_callout + 8

17 libdispatch.dylib 0x00007fff6a856ace _dispatch_lane_serial_drain + 597

18 libdispatch.dylib 0x00007fff6a857485 _dispatch_lane_invoke + 414

19 libdispatch.dylib 0x00007fff6a860a9e _dispatch_workloop_worker_thread + 598

20 libsystem_pthread.dylib 0x00007fff6aaab6fc _pthread_wqthread + 290

21 libsystem_pthread.dylib 0x00007fff6aaaa827 start_wqthread + 15

);

}

--

System Information


macOS Version 10.15.3 (Build 19D76)

Xcode 11.4 (16132.1)

Post not yet marked as solved Up vote post of wlawver Down vote post of wlawver
22k views

Replies

It was showing me error in "Device and Simulator" that Xcode version is lower for selected device. So I had add Device support file on this path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.

it's worked for me.
Hi ! Same issue here!!!! with Xcode 11.6 and iPhone iOS14.0 !!!!!

Details
Failed to start remote service on device.
Domain: com.apple.dtdevicekit
Code: 811
Recovery Suggestion: Please check your connection to your device.
User Info: {
    DVTRadarComponentKey = 261622;
}
  • -

The service is invalid.
Has anybody gotten this to work with Xcode 11.7 and iOS 14 with the disk image installed? Not being able to debug on new devices without using Xcode 12 is super frustrating.

Apple, you guys around to help us out?
I too have the same issue on xcode 11.7 / iOS 14.0
Thanks @cmcaboy85. Rebooting worked for me too!!

I have a fix for this on StackOverflow:

https://stackoverflow.com/a/68378023/1890317

  • That fix didn’t work for me.

    Any ideas why is it happening at all? One day I compile just fine, the next day, without even restarting Xcode, I plug iPhone in and it wouldn’t run the debug server for no reason at all, and I’m in the hell of trying to solve the issue, going over these threads for hundredth time, and nothing working. Then suddenly something clicks and it’s back online. This is so bloody annoying, mainly because I just don’t understand what is happening under the hood :(

Add a Comment

It was showing similar error for me today. App icon was there on my iPad. Tapping on it revealed I had to go to the settings and add it as a trusted source.

I was able to run the app after **Adding the developer account as a verified developer. **

You have to both unpair your device from the Xcode device list AND remove your Mac from the remote app and devices list in your device.