Xcode 11.5 未在运行 iOS13.5 的 iPhone 上安装应用程序 [英] Xcode 11.5 not installing app on iPhone running iOS13.5

查看:27
本文介绍了Xcode 11.5 未在运行 iOS13.5 的 iPhone 上安装应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的一个应用程序在我的 iPhone 上运行良好,然后在更新 iOS 后,该应用程序构建但未安装到手机但在模拟器中运行.弹出一条消息说无法安装应用名称".

An app I was developing was running fine on my iPhone then after updating iOS, the app builds but does not install to the phone but works in the simulator. A message pops up saying unable to install "app name".

我的尝试

-重新安装Xcode

-删除和添加配置文件

-重启 Mac 和 iPhone

-restarting Mac and iPhone

-创建一个新的空白应用

-Create a new blank app

我已经完成了所有操作后,它仍然无法安装

It still fails to install after all that I've done

以下是失败原因的详细信息:

Below is the details of why it fails:

详情

无法安装CharliNote"域:com.apple.dt.MobileDeviceErrorDomain 代码:-402653081-- 存在内部 API 错误.域:com.apple.dt.MobileDeviceErrorDomain 代码:-402653081 用户信息:{DVTRadarComponentKey = 261622;MobileDeviceErrorCode = "(0xE8000067)";com.apple.dtdevicekit.stacktrace"=(0 DTDeviceKitBase 0x000000012830881a DTDKCreateNSErrorFromAMDErrorCode + 233 1
DTDeviceKitBase 0x0000000128349f7090-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke+ 155 2 DVTFoundation 0x000000010ef11155 DVTInvokeWithStrongOwnership + 73 3 DTDeviceKitBase
0x0000000128349ca8 -[DTDKMobileDeviceTokeninstallApplicationBundleAtPath:withOptions:andError:withCallback:] +1654 4 IDEiOSSupportCore 0x00000001281c0e91__118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352+ 4165 5 DVTFoundation 0x000000010f0447f4 __DVT_CALLING_CLIENT_BLOCK
+ 7 6 DVTFoundation 0x000000010f046436 __DVTDispatchAsync_block_invoke + 119libdispatch.dylib 0x00007fff67c226c4_dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007fff67c23658 _dispatch_client_callout + 8 9 libdispatch.dylib0x00007fff67c28c44 _dispatch_lane_serial_drain + 597 10libdispatch.dylib 0x00007fff67c295d6_dispatch_lane_invoke + 363 11 libdispatch.dylib 0x00007fff67c32c09 _dispatch_workloop_worker_thread + 596 12libsystem_pthread.dylib 0x00007fff67e7da3d

Unable to install "CharliNote" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653081 -- There was an internal API error. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653081 User Info: { DVTRadarComponentKey = 261622; MobileDeviceErrorCode = "(0xE8000067)"; "com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x000000012830881a DTDKCreateNSErrorFromAMDErrorCode + 233 1
DTDeviceKitBase 0x0000000128349f70 90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 2 DVTFoundation 0x000000010ef11155 DVTInvokeWithStrongOwnership + 73 3 DTDeviceKitBase
0x0000000128349ca8 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1654 4 IDEiOSSupportCore 0x00000001281c0e91 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4165 5 DVTFoundation 0x000000010f0447f4 __DVT_CALLING_CLIENT_BLOCK
+ 7 6 DVTFoundation 0x000000010f046436 __DVTDispatchAsync_block_invoke + 1194 7
libdispatch.dylib 0x00007fff67c226c4 _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007fff67c23658 _dispatch_client_callout + 8 9 libdispatch.dylib 0x00007fff67c28c44 _dispatch_lane_serial_drain + 597 10 libdispatch.dylib 0x00007fff67c295d6 _dispatch_lane_invoke + 363 11 libdispatch.dylib 0x00007fff67c32c09 _dispatch_workloop_worker_thread + 596 12 libsystem_pthread.dylib 0x00007fff67e7da3d

系统信息

macOS 版本 10.15.4(内部版本 19E287)Xcode 11.5 (16139)

macOS Version 10.15.4 (Build 19E287) Xcode 11.5 (16139)

推荐答案

我遇到了同样的问题,我解决了.就我而言,我想在各种项目之间重新使用 NotificationContentExtension 并且走得太远了,基本上从扩展中删除了每个文件.我通过在扩展中放置一个文件来解决这个问题,该文件只是从我想重用但没有更多内容的类继承而来.

I had the same issue and I solved it. In my case, I wanted to re-use a NotificationContentExtension between various projects and went one step too far, removing basically every file from the extension. I fixed that by placing one file in the extension that simply inherited from the class that I wanted to reuse but had no further content.

我能弄清楚这是问题所在的原因是我试图安装到模拟器而不是我的设备,并且它明确指出它找不到NotificationExtension.所以在这种情况下一定要尝试将它安装到模拟器,看看它是否会产生更详细的错误消息.

The reason I could figure out that this was the problem was that I tried to install to the simulator instead of my device, and it clearly stated it could not find NotificationExtension. So definitely try to install it to the Simulator in this case, to see if it yields a more detailed error message.

这篇关于Xcode 11.5 未在运行 iOS13.5 的 iPhone 上安装应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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