Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install iOS app on device. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653179

Tags:

xcode

ios

I am trying to build an iOS app on a device. I am able to build the project fine, but running into an issue when trying to get the app on device. When attempting to run, I am getting a Unable to install app error message from Xcode and the app is not installed on device. The detailed error message is as shown below:

Details

Unable to install "wordgame"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653179
--
Could not write to the device.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653179
User Info: {
    DVTRadarComponentKey = 261622;
    MobileDeviceErrorCode = "(0xE8000005)";
    "com.apple.dtdevicekit.stacktrace" = (
    0   DTDeviceKitBase                     0x00000001220d793f DTDKCreateNSErrorFromAMDErrorCode + 220
    1   DTDeviceKitBase                     0x0000000122116124 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
    2   DVTFoundation                       0x0000000106269b43 DVTInvokeWithStrongOwnership + 71
    3   DTDeviceKitBase                     0x0000000122115e65 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
    4   IDEiOSSupportCore                   0x0000000121f86d28 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
    5   DVTFoundation                       0x00000001063982aa __DVT_CALLING_CLIENT_BLOCK__ + 7
    6   DVTFoundation                       0x0000000106399ecc __DVTDispatchAsync_block_invoke + 1191
    7   libdispatch.dylib                   0x00007fff70daa6c4 _dispatch_call_block_and_release + 12
    8   libdispatch.dylib                   0x00007fff70dab658 _dispatch_client_callout + 8
    9   libdispatch.dylib                   0x00007fff70db0c44 _dispatch_lane_serial_drain + 597
    10  libdispatch.dylib                   0x00007fff70db15d6 _dispatch_lane_invoke + 363
    11  libdispatch.dylib                   0x00007fff70dbac09 _dispatch_workloop_worker_thread + 596
    12  libsystem_pthread.dylib             0x00007fff71005a3d _pthread_wqthread + 290
    13  libsystem_pthread.dylib             0x00007fff71004b77 start_wqthread + 15
);
}
--


System Information

macOS Version 10.15.7 (Build 19H2)
Xcode 12.0.1 (17220)

I am a registered Apple Developer on a paid developer program. I am using the up-to-date version of macOS and Xcode.

I have tried by deleting project derived data, restarting the device, Xcode as well as the Mac. I have created a vanilla project and tried to run it on device with success, but could not do the same with my working project.

What are the steps that I can try to resolve?

like image 361
Marco Meyer Avatar asked Oct 10 '20 14:10

Marco Meyer


People also ask

Why does it say unable to install app iOS?

There can be many reasons such as ? poor Internet connection, low storage space on your iOS device, a bug in the App Store, faulty iPhone settings, or even a restriction setting on your iPhone that prevent the apps to download.

Can not install IPA on iPhone?

Make sure you are using Adhoc Distribution Provisioning Profile , not AppStore Distribution Provisioning Profile . AppStore Distribution Profile is required to distribute app from App Store, in your case you need to do following things in your Developer Account. Add your Device in Devices List.


1 Answers

I also had this exact same issue and error code. I was trying to run a newer development version of my app on an older phone that had a much older version of the app.

I found if I deleted the old version of the app from the phone then Xcode could then install the new version when I plugged in.

In between these two events my distribution certificates etc were renewed, not 100% sure if that was related but it worked for me by removing all old versions of the app.

like image 172
Chris S Avatar answered Sep 28 '22 03:09

Chris S