build - 如何防止在 iPad 上安装应用程序

标签 build xcode4 installation app-store distribution

如何在 Xcode 中构建应用程序以防止它安装在 iPad 上?我在这里看到的相关问题的答案似乎是指在 Xcode 4 中不再适用的设置和过程。

最佳答案

不幸的是,无法阻止在特定类型的设备上安装应用程序。

但是,阻止 iPad 用户使用该应用程序的一种廉价而肮脏的方法是 checkin appDelegate。 :

if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
//UIAlertView this app will not run on iPad
}

而不是在UIAlertView代表:
exit();

这将导致应用程序无法在 iPad 上运行。

关于build - 如何防止在 iPad 上安装应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6447369/

相关文章:

testing - 如何在安装升级软件之前拍摄注册表项/文件夹的快照?

linux - 适用于 Linux 的 Visual C++ : copy content files to build directory?

testing - msal npm build run 因加载程序问题而失败

c++ - 在 xcode 4 中提升测试输出

iphone - 如何在 Xcode 4 中调试 "message sent to deallocated instance"?

visual-studio - Visual Studio 安装项目——添加预构建步骤

installation - 从命令行传递的 WiX 条件属性不起作用?

unit-testing - 每晚构建与持续集成 : Long-Running Automated Tests

node.js - 奇怪的 Create-React-App Heroku 错误 - 无法获取/

ios - UITableView 一次只勾选一行