开发者

How to keep iPhone app out of iPad store?

开发者 https://www.devze.com 2022-12-31 20:38 出处:网络
I have an iPhone app that I have started to turn into a u开发者_如何学Cniversal app, however the process is not complete and I want to release an update to the iPhone version.

I have an iPhone app that I have started to turn into a u开发者_如何学Cniversal 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!


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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消