The test fails with Xcode12.1:Unable to install "***(Our Application)" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620394

Xcode -> "Product" -> "Test" -> Build Succeeded -> Unable to install "***(Our Application)" -> Details

Do you have any solutions?

Code Block
Details
Unable to install "***(Our Application)"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620394
--
The executable was signed with invalid entitlements.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620394
User Info: {
DVTRadarComponentKey = 487925;
MobileDeviceErrorCode = "(0xE8008016)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x0000000129dd693f DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x0000000129e15124 90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x000000010e716b33 DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x0000000129e14e65 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x0000000129c85d28 118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
5 DVTFoundation 0x000000010e84529a DVT_CALLING_CLIENT_BLOCK + 7
6 DVTFoundation 0x000000010e846ebc __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff694d06c4 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff694d1658 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff694d6c44 _dispatch_lane_serial_drain + 597
10 libdispatch.dylib 0x00007fff694d75d6 _dispatch_lane_invoke + 363
11 libdispatch.dylib 0x00007fff694e0c09 _dispatch_workloop_worker_thread + 596
12 libsystem_pthread.dylib 0x00007fff6972ba3d _pthread_wqthread + 290
13 libsystem_pthread.dylib 0x00007fff6972ab77 start_wqthread + 15
);
}
--
System Information
macOS Version 10.15.7 (Build 19H2)
Xcode 12.1 (17222)


Updated:
  • with tvOS Device → failed

  • with tvOS Simulator → succeeded

I got exactly the same error when deploying app to my iPhone (running on iOS 14.1)
The test fails with Xcode12.1:Unable to install "***(Our Application)" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620394
 
 
Q