Xcode : How To Set App To Be iPhone Only?

荒凉一梦 提交于 2019-12-17 19:46:00

问题


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:

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

Is there anything wrong with these settings?


回答1:


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

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:




回答2:


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.




回答3:


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.




回答4:


All iphone games can run in iPad. Therefore iTunes is writing iPhone/iPad. For search a iPad only games, user will search in iPad tab in iTunes where no any iPhone games, therefore don't worry about this. Universal device and iPhone only settings for iTunes detecting a apps for sort. And on some case for developers.



来源:https://stackoverflow.com/questions/10767346/xcode-how-to-set-app-to-be-iphone-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!