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.
Creating some new icon with iPad 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!!!
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
来源:https://stackoverflow.com/questions/46910624/empty-app-icon-on-ipad-for-iphone-only-application