Info.plist 可能不包含 UIRequiredDeviceCapabilities 键

Info.plist may not contain the UIRequiredDeviceCapabilities key

当我尝试使用 Application Loader 将我的 iOS + apple watch 应用程序上传到 iTunes 时,我收到错误消息

ERROR ITMS-90595: "Unsupported Key. The Info.plist of bundle Watchless.app/Watch/WatchlessWatchApp.app/PlugIns/WatchlessWatchApp Extension.appex may not contain the UIRequiredDeviceCapabilities key."

Info.plist 包含

<key>UIRequiredDeviceCapabilities</key>
<array>
    <string>healthkit</string>
</array>

我认为这是绝对必要的,因为 watch 应用程序和 iOS 应用程序都严重依赖 HealthKit。

当我打开手表扩展目标的 HealthKit 功能时生成条目。

我运行不知道要改变什么。

使用 XCode 7.2,应用程序加载器 3.4

UIRequiredDeviceCapabilities 只是你说 "I don't want to be installed on device without this functionality".

的方式

删除它不会影响您使用 HealthKit 的手表扩展。

只需从扩展程序的 plist 中删除 UIRequiredDeviceCapabilities 就可以了。