App Store: launching for iPhone/iPod only, not iPad

13,013

Solution 1

Just check Build Settings and find key: Targeted device family

There you have iPhone, iPad or iPhone/iPad options to choose

When you build the app and send it to Apple, it just checks values there and makes it available for the device specified.

Solution 2

You can't. Apple's App store guidelines appear to specifically not allow iPhone apps that don't run or that crash under (1X/2X) compatibility mode on an iPad.

Solution 3

It's an old question but the answer could be useful to other developers:

  • If you want your app to run on both iPhone and iPod I don't see the point to prevent it from running on an iPad under (1X/2X) compatibility mode. You may loose some consumers for nothing.
  • If you want your app to run on iPhone only because you need some capabilities like telephony. The good way would be to use UIRequiredDeviceCapabilities and to set "sms" and "telephony". See Apple doc for more details: https://developer.apple.com/library/ios/qa/qa1397/_index.html

Solution 4

One way I could see this working is like this:

-(BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
     if (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)
          return NO;

     // rest of launching code
     return YES;
}
Share:
13,013
Mars
Author by

Mars

Python haxxorz and parapsychology student. Creator of the eminent finplot library: https://github.com/highfestiva/finplot. Once upon a time made a UFO short documentary in Swedish: https://www.youtube.com/watch?v=HFF528pc3O8. Constantly at a fork in the road.

Updated on July 04, 2022

Comments

  • Mars
    Mars almost 2 years

    How do I launch my app only for iPhone/iPod, not for iPad on the App Store? I can't seem to find any setting neither in my .plist file nor in iTunesConnect. Thanks!

  • Richard J. Ross III
    Richard J. Ross III almost 12 years
    That doesn't prevent the app from being launched on iPad, though.
  • Mars
    Mars almost 12 years
    @RichardJ.RossIII: I'm only asking about app store, I'll rephrase to make that clearer.
  • dgund
    dgund almost 12 years
    +1. Your app will always run in (1x/2x) mode, even if they are iPhone specific.