Empty app icon on iPad for iPhone only application

别等时光非礼了梦想. 提交于 2019-12-22 05:53:13

问题


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

In Xcode 9 I've marked the app as "universal" and built it. The icon appeared! Marked back as "iPhone only" - icon disappeared.

So the question is: How to make an "iPhone only" app has an icon on iPad?

P.S.

Created a new icon set with iPad support. Icons provided and activated. Doesn't help

P.S.

Cleaning and deleting derived data doesn't help

P.S.

I have an icon for iPad and iPad all checkmark is selected in project.

I've found the reason:

<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>

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.

Thanks for help!!!


回答1:


These lines in info.plist made the iPad icon in assets to be ignored

<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>

When I removed these lines - the icon appeared on iPad




回答2:


just navigate to the attributes inspector ,and select the check box.



来源:https://stackoverflow.com/questions/46910624/empty-app-icon-on-ipad-for-iphone-only-application

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