Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode : How To Set App To Be iPhone Only?

We have set the following app settings to be iPhone only, but in the App Store the app is listed as iPhone/iPad compatible.

As you can see in the following image, the device family is set to be just iPhones:

enter image description here

Here is App: http://itunes.apple.com/us/app/carrom-pro/id525961441?mt=8.

Is there anything wrong with these settings?

like image 384
Guru Avatar asked May 26 '12 15:05

Guru


People also ask

Can I make an app just for my iPhone?

Xcode is a great way to create an app for iPhone. It's a free download from Apple and is straightforward to use. Xcode has a built-in interface builder that makes it easy to prototype your design then connect your interface to your source code. You can also debug your app and submit it to the app market.

How do I make an iPhone app using Xcode?

Launch Xcode, then click “Create a new Xcode project” in the Welcome to Xcode window or choose File > New > Project. In the sheet that appears, select the target operating system or platform and a template under Application. In the following sheets, fill out the forms and choose options to configure your project.

Can you only make iOS apps on Mac?

Native iOS apps can be developed only on Mac. You can write code even in Windows or Linux, but you can't build and sign it there. Non-native platforms, like Flutter or React Native, won't make iOS builds without Mac either.


3 Answers

All iPhone applications can be run on the iPad as well, just not "fullscreen" (see image below). Applications can be designed for iPhone and iPad separately, or a universal app, which contains the resources for both iPhone and iPad (interfaces, device handling, etc.).

enter image description here

The user will notice a gray container around an application that is designed for iPhone. Universal apps will automatically choose the correct interface for the device.

In the iTunes Store, applications with a blue plus symbol beside the price are Universal applications:

enter image description here

like image 196
Evan Mulawski Avatar answered Sep 21 '22 06:09

Evan Mulawski


Setting the deployment Devices to "Iphone" wont restrict it to iphone only.

The only way to do it is to add some Required Device capabilities which iPad doesn't have. e.g., If you add telephony or sms to the Required Device capabilities in Info.plist of the app, apple will automatically make the app available only for iPhone.

For more device capabilities, refer to https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

I hope it helps.

like image 34
Nikhil Jindal Avatar answered Sep 24 '22 06:09

Nikhil Jindal


Keep UIDeviceFamily property to 1 (for iPhone) in app plist file and also change the Targeted Device Family in Build settings to 1 (for iPhone). Keep 2 in the both cases if you want to support iPad only. These are tested in XCode 8.

like image 21
prodeveloper Avatar answered Sep 24 '22 06:09

prodeveloper