Jonas Byström
Jonas Byström

Reputation: 26159

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

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!

Upvotes: 4

Views: 13092

Answers (4)

Ladislav
Ladislav

Reputation: 7283

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.

Upvotes: 9

Toom
Toom

Reputation: 387

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

Upvotes: 3

hotpaw2
hotpaw2

Reputation: 70683

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.

Upvotes: 10

Richard J. Ross III
Richard J. Ross III

Reputation: 55543

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;
}

Upvotes: 2

Related Questions