如何让 iPhone 应用程序远离 iPad 商店?
我有一个 iPhone 应用程序,我已开始将其转变为通用应用程序,但该过程尚未完成,我想发布 iPhone 版本的更新。
我知道您可以在 Info.plist 文件中指定设备功能,以将您的应用程序限制在某些设备上,但是我该如何做到这一点才能防止未完成的通用版本出现在 iPad 商店中呢?
检查 LSRequiresiPhoneOS BOOL 条目(在 Info.plist 文件中)是否足够?
谢谢!
I have an iPhone app that I have started to turn into a universal app, however the process is not complete and I want to release an update to the iPhone version.
I know that you can specify device capabilities in the Info.plist file to restrict your app to certain devices, but how can I do this to prevent the unfinished universal version from appearing in the iPad store?
Is checking the LSRequiresiPhoneOS BOOL entry (in the Info.plist file) enough?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为对 iPhone 的限制是非常糟糕的决定 - iPad 的设计目的是在兼容模式下运行所有 iPhone 应用程序(除了电话等明显的功能)。所以你会遇到严重的投诉。
如果是关于 iPad 部分的半完成增强,那么只需关闭这些功能并为 iPhone 进行编译(目标设备:仅限 iPhone;也许还需要调整 plist 文件)。
I'd consider restriction to iPhone very bad decision - the iPad is designed to run all iPhone apps in compatibilty mode (except for obvious things like telephony). So you will run into severe complaints.
If it is about the half-done enhancements for the iPad part, then just turn those features off and compile for iPhone (targeted device: only iPhone; maybe tweak the plist file, too).
您可以使用 UIRequiredDeviceCapability 并指定您在 info.plist 中需要“电话”。这将使其远离 iPad(以及 iPod touch)。请参阅设备支持。
You could use the UIRequiredDeviceCapabilities and specify that you require "telephony" in your info.plist. That would keep it off the iPad (and iPod touch too). See Device Support.
我在“项目设置”->“项目设置”下找到了一个设置构建标题为“目标设备系列”的项目。也许尝试将其设置为仅 iPhone,而不是 iPhone/iPad——我认为这也应该有帮助。
I found a setting under Project Settings -> Build that titled "Targeted Device Family." Maybe try setting this to just iPhone, not iPhone/iPad -- I think that should also help.