English 中文(简体)
Xcode : 如何将应用程序设为 iPhone 只为 iPhone?
原标题:Xcode : How To Set App To Be iPhone Only?

我们设置了以下应用程序设置为 iPhone, 但该应用程序在 AppStore 中被列为 iPhone/ iPad 兼容 。

从以下图像中可以看到,设备家庭设置为iPhones:

""https://i.sstatic.net/hocAn.png" alt="此处输入图像描述"/"

这里是:http://itunes.apple.com/us/ap/carrom-pro/id52596441?mt=8

这些设置有什么问题吗?

最佳回答

所有 iPad 应用程序都可以在iPad 上运行, 但不是“ 全屏 ” ( 见下文图像 ) 。 应用程序可以为 iPhone 和 iPad 单独设计, 或者一个通用应用程序, 其中包含 iPhone 和 iPad 的资源( 界面、 设备处理等 ) 。

""https://i.static.net/3r9RRP.png" alt="此处的内置图像描述"/"

用户会注意到为 iPhone 设计的应用程序周围的灰色容器。 通用应用程序将自动选择设备的正确界面 。

在iTunes仓库中,除价格外带有蓝色加符号的应用软件是通用应用软件:

""https://i.sstatic.net/NkPVW.png" alt="此处输入图像描述"/ >

问题回答

将部署装置设置为“ Iphone ” 并不限制它仅限于 iphone 。

唯一的方法就是在应用程序的Info.plist中添加一些 iPad 不具备的 iPad 要求的设备能力 < / strong > 。 例如,如果在 iPad 应用程序的 Info. plist 中加入 < strong > 要求的设备能力 ,苹果将自动使该应用程序只为 iPhone 提供 iPhone 。

关于更多的设备能力,请查阅https://developer.apill.com/library/ios/document/General/Reference/InfoPlistKeyReference/articles/iPhoneOSKeys.html/a>。

我希望它能帮上忙

将 < 强度 > UIDeviceFamily 的属性保留到 AP 列表文件中的 < 强度 > 1 (iPhone),并将 < 强度 > 构建设置 < /强度 > 中的 < 强度 > 目标设备家族 改为 < 强度 > 1 < /强度 > (iPhone) 。 如果您想要支持 iPad, 请在两种情况下都保留 < 强度 > 2 。 这些都在 XCode 8 中测试。

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.





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签