如何正确设置UIRequiredDeviceCapability?
我有一个应用程序被 Apple 拒绝,指出我需要在 info.plist 中实现 UIRequiredDeviceCapability
,因为我的应用程序需要相机闪光灯。我理解这个问题,但我不确定如何正确设置此键。我是否将 UIRequiredDeviceCapability
创建为字典或数组?相机闪光灯是布尔值还是字符串?任何帮助表示赞赏!谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将此文本添加到应用程序的 Info.plist 文件中:
如果某些功能要求需要为 false,则仅需要字典。
来自文档的重要说明:
Add this text to your app's Info.plist file:
You only need a dictionary if some of the capability requirements need to be false.
Important note from docs:
在 Xcode 中 ->信息(info.plist)
添加密钥
UIRequiredDeviceCapbility
在该键中添加:
camera-flash
still-camera
In Xcode -> Info(info.plist)
add key
UIRequiredDeviceCapabilities
in this key add:
camera-flash
still-camera