[英]How to distribute enterprise iOS App to specific iPhone device types
How I can restrict an iOS App so that it can install only on specific device type. 如何限制iOS应用程序,使其只能安装在特定设备类型上。 for example, I do not want my app to install iPhone5, iPhone5S, and iPhone6. 例如,我不希望我的应用安装iPhone5,iPhone5S和iPhone6。 I do not want to control it with deployment target settings (iOS version). 我不想使用部署目标设置(iOS版本)来控制它。 And this has to be distributed using Apple Developer Enterprise Program. 并且必须使用Apple Developer Enterprise Program分发。
You can't prevent the installation of the app on specific devices. 您不能阻止在特定设备上安装该应用程序。
But you can create a splash screen as your first view of the app in which you check the device and prevent the start of the app informing the user. 但是,您可以将启动屏幕创建为应用程序的第一视图,您可以在其中检查设备并阻止应用程序启动通知用户。
Well, there is no direct option available to achieve what you requested, because you can select the device type, like iPhone, iPad or Universal while setting up the target, 嗯,没有直接的选项可以实现您的要求,因为您可以在设置目标时选择设备类型,例如iPhone,iPad或Universal,
You can do this in alternate way, on applicationDidFinishLaunching
You can simply put a check, if the device is other than the one you wants to provide the support then allow the proceed to the application functionalities, otherwise show a screen with some message showing that, we are not currently providing support on these devices (iPhone5, iPhone5S, and iPhone6) 您可以在applicationDidFinishLaunching
上以另一种方式执行此操作。您可以简单地检查一下,如果设备不是您要提供支持的设备,则允许继续进行应用程序功能,否则显示带有一些消息的屏幕,表明: 我们目前不在这些设备(iPhone5,iPhone5S和iPhone6)上提供支持
And as you are going to distribute the application via enterprise account, so you will not need it to get confirmation from the Apple reviewers. 而且,由于您将通过企业帐户分发应用程序,因此您将不需要它来获得Apple审阅者的确认。
Hope it helps! 希望能帮助到你!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.