简体   繁体   English

仅将iPhone / iPad App限制为iPhone 4和更高版本?

[英]Restrict iPhone/iPad App to iPhone 4 and higher only?

I am looking to make my app so that it only works on iPhone4 or higher, and not the 3GS. 我希望使我的应用程序能够在iPhone4或更高版本上运行,而不能在3GS上运行。

How can I do this? 我怎样才能做到这一点? Is it done via setting the Architectures setting to Standard Armv7/Armv7s 通过将“架构”设置设置为“标准Armv7 / Armv7s”来完成

And Valid architectures to Armv7 & Armv7s? 对Armv7和Armv7s有效的架构?

Or do I need to look at deployment target? 还是我需要查看部署目标? And set it to a certain iOS version? 并将其设置为特定的iOS版本?

Thanks in advance! 提前致谢!

Unfortunately you can target the iOS version not the device! 不幸的是,您可以定位iOS版本而不是设备! You can try to build for iOS 6.0+ and it'll isolate some older devices like iPad1. 您可以尝试针对iOS 6.0及更高版本进行构建,它将隔离一些较旧的设备,例如iPad1。 I'm not sure what iOS version will go up to on 3GS, it'll be phased out soon, though with upcoming iOS releases. 我不确定在3GS上会升级到哪个iOS版本,尽管即将发布的iOS版本会很快淘汰它。 I know iOS 6 will work on 3GS but iPad1 won't 我知道iOS 6可以在3GS上运行,但iPad1不能

You can detect the device, and restrict it via code, but through Apple and iTunes, there is no device centric restrictions, only OS. 您可以检测设备并通过代码对其进行限制,但是通过Apple和iTunes,没有以设备为中心的限制,只有操作系统。

Deployment target is only going to allow you to target a specific iOS version and a 3GS can run iOS6. 部署目标仅允许您针对特定的iOS版本,并且3GS可以运行iOS6。 If you're truly looking to restrict older devices from running your app you're likely going to have to do some checks for device model within the AppDelegate and restrict functionality. 如果您确实想限制旧设备运行应用程序,则可能需要对AppDelegate中的设备型号进行一些检查并限制功能。

A caveat to this is that your app will likely not be permitted in the App Store. 需要注意的是,您的应用可能不会在App Store中被允许。 What feature(s) are you trying to leverage that a 3GS doesn't support? 您想利用3GS不支持的哪些功能?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM