iPad上的空app图标仅适用于iPhone的应用程序 [英] Empty app icon on iPad for iPhone only application
问题描述
我的iPhone应用程序未针对iPad进行优化,但它包含iPad的所有图标。当我在iPad上安装应用程序时 - 没有图标。此外,当我从iPad上的商店下载我的应用程序时 - 它没有图标...
I have an iPhone application which is not optimised to work on iPad, but it contains all the icons for iPad. When I install an app on iPad - there is no icon. Also, when I download my app from the store on iPad - it doesn't have an icon...
在Xcode 9中我将应用标记为通用 并建造它。图标出现了!标记为仅限iPhone - 图标消失。
In Xcode 9 I've marked the app as "universal" and built it. The icon appeared! Marked back as "iPhone only" - icon disappeared.
所以问题是:如何制作一个仅iPhone应用程序在iPad上有一个图标?
So the question is: How to make an "iPhone only" app has an icon on iPad?
PS
创建一些提供并激活iPad图标的新图标无济于事
Creating some new icon with iPad icons provided and activated doesn't help
PS
清理和删除派生数据无济于事
Cleaning and deleting derived data doesn't help
PS
我有一个iPad图标, iPad全部选中标记在项目中被选中。
I have an icon for iPad and iPad all checkmark is selected in project.
我找到了原因:
<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>
info.plist
中的这些行成了图标集已禁用。我不知道他们来自哪里......当我删除这些线条时 - 图标出现在iPad上。
These lines in info.plist
made the icon set disabled. And I have no idea where they came from... When I removed these lines - the icon appeared on iPad.
感谢您的帮助!
推荐答案
info.plist 中的这些行使资源中的iPad图标被忽略
These lines in info.plist made the iPad icon in assets to be ignored
<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>
当我删除这些行时 - iPad上出现了图标
When I removed these lines - the icon appeared on iPad
这篇关于iPad上的空app图标仅适用于iPhone的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!