iPad 上的空应用程序图标仅适用于 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?
附言
创建了一个支持 iPad 的新图标集.提供和激活的图标.没用
Created a new icon set with iPad support. Icons provided and activated. Doesn't help
附言
清理和删除派生数据无济于事
Cleaning and deleting derived data doesn't help
附言
我有一个 iPad 图标,并且在项目中选择了 iPad all checkmark.
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 上的空应用程序图标仅适用于 iPhone 的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!