can't run app in physical device, Xcode 12.5, iOS 12.5.3

I get this error:


Code: -402620403

--

There was an error communicating with your device.

Domain: com.apple.dt.MobileDeviceErrorDomain

Code: -402620403

User Info: {

    DVTRadarComponentKey = 261622;

    MobileDeviceErrorCode = "(0xE800800D)";

    "com.apple.dtdevicekit.stacktrace" = (

	0   DTDeviceKitBase                     0x0000000119795e98 DTDKCreateNSErrorFromAMDErrorCode + 272

	1   DTDeviceKitBase                     0x00000001197d1898 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 160

	2   DVTFoundation                       0x00000001032c3644 DVTInvokeWithStrongOwnership + 76

	3   DTDeviceKitBase                     0x00000001197d15e4 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1316

	4   IDEiOSSupportCore                   0x000000011964bd40 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.294 + 2928

	5   DVTFoundation                       0x00000001033ec814 __DVT_CALLING_CLIENT_BLOCK__ + 16

	6   DVTFoundation                       0x00000001033ee238 __DVTDispatchAsync_block_invoke + 680

	7   libdispatch.dylib                   0x00000001a227b8bc _dispatch_call_block_and_release + 32

	8   libdispatch.dylib                   0x00000001a227d420 _dispatch_client_callout + 20

	9   libdispatch.dylib                   0x00000001a228477c _dispatch_lane_serial_drain + 580

	10  libdispatch.dylib                   0x00000001a22852cc _dispatch_lane_invoke + 408

	11  libdispatch.dylib                   0x00000001a228f3fc _dispatch_workloop_worker_thread + 708

	12  libsystem_pthread.dylib             0x00000001a2426060 _pthread_wqthread + 276

	13  libsystem_pthread.dylib             0x00000001a2424d94 start_wqthread + 8

);

}

--





System Information



macOS Version 11.2 (Build 20D64)

Xcode 12.5 (18205) (Build 12E262)

Turns out it is one scheme setting that leads to this error: Debug Executable

Steps:

  • Choose the problematic scheme
  • Edit Scheme
  • Choose Run
  • Uncheck “Debug executable”
  • Clean Derived Data: ⌘ Cmd + ↑ Shift + K
  • Run the app again: ⌘ Cmd + R
can't run app in physical device, Xcode 12.5, iOS 12.5.3
 
 
Q