无法在设备上安装 iOS 应用程序.域:com.apple.dt.MobileDeviceErrorDomain 代码:-402653179 [英] Unable to install iOS app on device. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653179

查看:248
本文介绍了无法在设备上安装 iOS 应用程序.域:com.apple.dt.MobileDeviceErrorDomain 代码:-402653179的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在设备上构建 iOS 应用.我能够很好地构建项目,但是在尝试在设备上获取应用程序时遇到了问题.尝试运行时,我收到来自 Xcode 的无法安装应用错误消息,并且该应用未安装在设备上.详细的错误信息如下所示:

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)

我是付费开发者计划的注册 Apple 开发者.我使用的是最新版本的 macOS 和 Xcode.

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

我尝试删除项目派生数据,重新启动设备、Xcode 以及 Mac.我创建了一个 vanilla 项目并尝试在设备上成功运行它,但无法在我的工作项目中做同样的事情.

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?

推荐答案

我也遇到了完全相同的问题和错误代码.我试图在旧手机上运行应用的较新开发版本,而该手机的应用版本要旧得多.

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.

我发现如果我从手机中删除了旧版本的应用程序,那么当我插入时 Xcode 可以安装新版本.

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.

在这两次事件之间,我的分发证书等被更新,不能 100% 确定这是否相关,但通过删除应用程序的所有旧版本对我有用.

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.

这篇关于无法在设备上安装 iOS 应用程序.域:com.apple.dt.MobileDeviceErrorDomain 代码:-402653179的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆