ios - Watchkit 应用程序仅在 iPad 上无法启动

标签 ios iphone xcode ipad app-store-connect

我正在尝试向 TestFlight 提交应用,但由于以下原因被拒绝两次:

2.3 Details

However, we attempted to review your app but were unable to install the app on iPad. The UIRequiredDeviceCapabilities key in the Info.plist is set in such a way that the app will not install on an iPad.

Next Steps

Please check the UIRequiredDeviceCapabilities key to verify that it contains only the attributes required for your app features or the attributes that must not be present on the device. Attributes specified by a dictionary should be set to true if they are required and false if they must not be present on the device.

当我尝试在 iPad 模拟器上启动应用程序时,出现错误:

Oct  2 11:32:04 exploiter.local com.apple.dt.Xcode[59574] <Error>: Error 

Domain=LaunchServicesError Code=0 
"The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x7fe30acc1950 
{Error=WatchKitTwoAppMissingExtension, ErrorDescription=WatchKit 2 app at /Users/yair/Library/Developer/CoreSimulator/Devices/1E3162E3-A525-4B7E-B36C-4EC17B4C7A96/data/Library/Caches/com.apple.mobile.installd.staging/temp.sq7Y13/extracted/MA.app/Watch/MA WatchKit App.app 
is missing its app extension.}

有人见过这个问题吗?

最佳答案

我确信这会对某人有所帮助,因为我相信这是一个 xcode 错误。

所发生的情况是,在 Apple Watch 扩展上打开 HealthKit 功能会将一个值 healthkit 添加到同一目标的 UIRequiredDeviceCapability 数组中。

出于某种奇怪的原因,该值会阻止应用程序在任何 iPad 设备上正常启动。从 Apple Watch 扩展目标 plist 中手动删除 healthkit 值修复了该问题,并且提交成功。

此外,如果删除该值后您在该屏幕上看到警告,则可以忽略它。该应用程序将毫无问题地部署和安装。

关于ios - Watchkit 应用程序仅在 iPad 上无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32911035/

相关文章:

php - 从 GPS 坐标获取区域的文本描述

ios - 无法使具有标识符的单元格出列

iphone - Facebook Connect - 安装 GIT,#import "Facebook.h" "file not found"

iphone - 自动 C++ 内存/对象实例管理?智能指针?

ios - 跨不同设备的圆形个人资料图片缺少 Xcode 适当的自动布局约束

iOS 临时分发

ios - 我可以为 4.7 和 5.5 设置特定的自动布局约束吗

ios - dispatch_async(dispatch_get_main_queue() inside NSManagedObjectContext performBlock

ios - 将自定义 UIColor 引入 Swift 项目的最佳方式是什么?

iphone - 如何以安全的方式在后台线程中执行文件导入?如何在后台进行安全的文件 I/O 事务?