5 Replies
      Latest reply on Feb 10, 2020 1:38 PM by ryanbdevilled
      Local Reasoning Level 1 Level 1 (0 points)

        After the upgrade to Xcode 11, an existing app that once was debuggable on device can no longer be installed and debugged on device. It is failing with an unknown error. Same failure occurs on Xcode 11.2.1 and Xcode 11.3 beta. App debugging on SImulator works fine.

         

        This is not reporting a codesign or provisioning failure (I've seen those in the past). I'm hoping someone can help narrow down the culprits.

         

        Details

         

        Unable to install "NameOfMyApp"

        Domain: com.apple.dtdevicekit

        Code: -402620415

        --

        App installation failed

        Domain: com.apple.dtdevicekit

        Code: -402620415

        Failure Reason: An unknown error has occurred.

        User Info: {

            DVTRadarComponentKey = 487927;

            "com.apple.dtdevicekit.stacktrace" = (

          0   DTDeviceKitBase                     0x000000012692a6e7 DTDKCreateNSError + 109

          1   DTDeviceKitBase                     0x000000012692ade9 DTDK_AMDErrorToNSError + 792

          2   DTDeviceKitBase                     0x000000012696a56a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164

          3   DVTFoundation                       0x000000010b4ea156 DVTInvokeWithStrongOwnership + 73

          4   DTDeviceKitBase                     0x000000012696a301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589

          5   IDEiOSSupportCore                   0x00000001267f2a25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523

          6   DVTFoundation                       0x000000010b61b3ba __DVT_CALLING_CLIENT_BLOCK__ + 7

          7   DVTFoundation                       0x000000010b61ca92 __DVTDispatchAsync_block_invoke + 809

          8   libdispatch.dylib                   0x00007fff590635f8 _dispatch_call_block_and_release + 12

          9   libdispatch.dylib                   0x00007fff5906463d _dispatch_client_callout + 8

          10  libdispatch.dylib                   0x00007fff5906a8e0 _dispatch_lane_serial_drain + 602

          11  libdispatch.dylib                   0x00007fff5906b396 _dispatch_lane_invoke + 385

          12  libdispatch.dylib                   0x00007fff590736ed _dispatch_workloop_worker_thread + 598

          13  libsystem_pthread.dylib             0x00007fff592a4611 _pthread_wqthread + 421

          14  libsystem_pthread.dylib             0x00007fff592a43fd start_wqthread + 13

        );

        }

        --

        • Re: Xcode 11 install to device fails, code -402620415
          aftab301286 Level 1 Level 1 (0 points)

          Details

           

          Following is the details of the error in the device.

           

          Unable to install "NameOfMyApp"

          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                     0x00000001231936e7 DTDKCreateNSError + 109

            1   DTDeviceKitBase                     0x0000000123193de9 DTDK_AMDErrorToNSError + 792

            2   DTDeviceKitBase                     0x00000001231d356a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164

            3   DVTFoundation                       0x000000010b6d4156 DVTInvokeWithStrongOwnership + 73

            4   DTDeviceKitBase                     0x00000001231d3301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589

            5   IDEiOSSupportCore                   0x000000012306ca25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523

            6   DVTFoundation                       0x000000010b8053ba __DVT_CALLING_CLIENT_BLOCK__ + 7

            7   DVTFoundation                       0x000000010b806a92 __DVTDispatchAsync_block_invoke + 809

            8   libdispatch.dylib                   0x00007fff691cd583 _dispatch_call_block_and_release + 12

            9   libdispatch.dylib                   0x00007fff691ce50e _dispatch_client_callout + 8

            10  libdispatch.dylib                   0x00007fff691d3ace _dispatch_lane_serial_drain + 597

            11  libdispatch.dylib                   0x00007fff691d4452 _dispatch_lane_invoke + 363

            12  libdispatch.dylib                   0x00007fff691dda9e _dispatch_workloop_worker_thread + 598

            13  libsystem_pthread.dylib             0x00007fff6942771b _pthread_wqthread + 290

            14  libsystem_pthread.dylib             0x00007fff6942757b start_wqthread + 15

          );

          }

          --

          • Re: Xcode 11 install to device fails, code -402620415
            ryanbdevilled Level 1 Level 1 (0 points)

            I'm getting the same error when trying to install an app onto a local device from Xcode.  If you figured this out or were able to work around it, any advice would be appreciated.

              • Re: Xcode 11 install to device fails, code -402620415
                ryanbdevilled Level 1 Level 1 (0 points)

                I had this same issue.  I suspect, although I'm not sure at all, that it had something to do with trying to install the app on my device wirelessly when on a fairly weak wifi network.  Something seemed to get corrupted and then it wouldn't work even when plugged in over USB.

                 

                In any event, I removed the app from my device, I removed my device from Xcode, then I did a force restart on my device, and repaired my device with Xcode.  Then it subsequently worked and haven't had any issues since then.

              • Re: Xcode 11 install to device fails, code -402620415
                zerf Level 1 Level 1 (0 points)

                I was able to get past this issue by plugging my device into a different USB port than the one I had been using. I tried many, many solutions including reinstallation of Xcode, creation of a different user profile, etc, etc before this succeeded.