How to keep iPhone app out of iPad store?

こ雲淡風輕ζ 提交于 2019-12-30 11:07:38

问题


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!


回答1:


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.




回答2:


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).




回答3:


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.



来源:https://stackoverflow.com/questions/2909465/how-to-keep-iphone-app-out-of-ipad-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!