如何正确设置 UIRequiredDeviceCapabilities? [英] How to properly set UIRequiredDeviceCapabilities?

查看:34
本文介绍了如何正确设置 UIRequiredDeviceCapabilities?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个被 Apple 拒绝的应用,说明我需要在 info.plist 中实现 UIRequiredDeviceCapabilities,因为我的应用需要相机闪光灯.我明白这个问题,但我不确定如何正确设置这个键.我是否将 UIRequiredDeviceCapabilities 创建为字典或数组?和相机闪光灯作为布尔或字符串?任何帮助表示赞赏!谢谢!

I have had an app rejected by Apple stating that I need to implement UIRequiredDeviceCapabilities in my info.plist due to my app requiring a camera flash. I understand the issue but I am not sure how to properly set this key. Do I create UIRequiredDeviceCapabilities as a dictionary or array? and camera-flash as a bool or string? Any help is appreciated! Thanks!

推荐答案

将此文本添加到您应用的 Info.plist 文件中:

Add this text to your app's Info.plist file:

<key>UIRequiredDeviceCapabilities</key>
<array>
    <string>camera-flash</string>
</array>

如果某些能力要求需要为假,您只需要一本字典.

You only need a dictionary if some of the capability requirements need to be false.

来自文档的重要说明:

对于应用更新,您只能维持或放宽能力要求.提交具有附加要求的更新会阻止之前下载您的应用的一些客户运行更新.

For app updates, you can only maintain or relax capability requirements. Submitting an update with added requirements would prevent some customers who previously downloaded your app from running the update.

这篇关于如何正确设置 UIRequiredDeviceCapabilities?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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