Reputation: 26159
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
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
Reputation: 387
It's an old question but the answer could be useful to other developers:
Upvotes: 3
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
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