views:

323

answers:

3

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  A: 

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.

ewindsor
I don't think that will prevent running it on an iPad. It will just appear in a small iPhone sized window on the iPad instead of using the full screen.
progrmr
+1  A: 

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.

progrmr
+1  A: 

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

Eiko