Search code examples
iosxcodexcode11

Xcode11 : Unable to install “AppName”


If you try to run the app on a real device
The following error appears and cannot be executed.
Why does this happen?
Are there any settings that should be reviewed?

Issue Details

Unable to install "AppName"
Domain: com.apple.dtdevicekit
Code: -402653103
--
App installation failed
Domain: com.apple.dtdevicekit
Code: -402653103
Failure Reason: Could not inspect the application package.
User Info: {
    DVTRadarComponentKey = 487927;
    "com.apple.dtdevicekit.stacktrace" = (
    0   DTDeviceKitBase                     0x0000000122d066e7 DTDKCreateNSError + 109
    1   DTDeviceKitBase                     0x0000000122d06de9 DTDK_AMDErrorToNSError + 792
    2   DTDeviceKitBase                     0x0000000122d4656a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
    3   DVTFoundation                       0x0000000108a03156 DVTInvokeWithStrongOwnership + 73
    4   DTDeviceKitBase                     0x0000000122d46301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589
    5   IDEiOSSupportCore                   0x0000000122bcea25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
    6   DVTFoundation                       0x0000000108b343ba __DVT_CALLING_CLIENT_BLOCK__ + 7
    7   DVTFoundation                       0x0000000108b35a92 __DVTDispatchAsync_block_invoke + 809
    8   libdispatch.dylib                   0x00007fff588ea5f8 _dispatch_call_block_and_release + 12
    9   libdispatch.dylib                   0x00007fff588eb63d _dispatch_client_callout + 8
    10  libdispatch.dylib                   0x00007fff588f18e0 _dispatch_lane_serial_drain + 602
    11  libdispatch.dylib                   0x00007fff588f2396 _dispatch_lane_invoke + 385
    12  libdispatch.dylib                   0x00007fff588fa6ed _dispatch_workloop_worker_thread + 598
    13  libsystem_pthread.dylib             0x00007fff58b2b611 _pthread_wqthread + 421
    14  libsystem_pthread.dylib             0x00007fff58b2b3fd start_wqthread + 13
);
}
--

Tried

  • Provisioning profile has been recreated.
  • Installed the created profile on the device.
  • Cleaned the project.
  • Deleted data in ~ / Library / Developer / Xcode / DerivedData.

Environment

  • Xcode : 11.2.1
  • macOS : 10.14.6 Mojave
  • Device : iPhoneX
  • iOS : 13.1.2

Solution

  • It was an error that occurred due to a bug in the framework.
    If you reinstall the problematic framework correctly
    The error has disappeared.
    Thank you very much.