将 iOS 应用程序的部署限制为仅某些应用程序
有什么方法可以限制我的 iOS 应用程序在应用程序商店中适用于 Gen 2 iPad 或更高版本以及 iPhone 4 或更高版本?我可以在 Android 中做到这一点,所以我想他们在 iOS 中也可以做到这一点。
Is there any way to limit my iOS app be available for Gen 2 iPads or better and iPhone 4 or better in the app store? I can do this in Android so I imagine their is an iOS equivalent.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法将您的应用限制为特定设备,但您可以通过在 Info.plist 中包含
UIRequiredDeviceCapability
键来将其配置为需要某些硬件功能。这是一个字符串数组,您可以在 iOS 应用程序编程指南。
例如,通过包含“前置摄像头”,您实际上会将您的应用程序限制为 iPhone 4、iPad 2 和最新一代 iPod touch。
You can't restrict your app to specific devices, but you can configure it to require certain hardware features by including the
UIRequiredDeviceCapabilities
key in your Info.plist.This is an array of strings, you can find details about which keys are available in the iOS Application Programming Guide.
By including "front-facing-camera", for example, you would essentially restrict your app to iPhone 4, iPad 2 and latest-gen iPod touch.