Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios11 iphone app icon is missing on iPad

I have an iPhone only app but it works in compatibility mode in the iPad too(no surprises).

but after I updated the app for the ios11, app icon on the iPad is missing.

here is what I've tried; - launch on the iPhone simulator, icon appears - launch on the iPad simulator, icon is missing

change the device options from "iphone" to "universal", run the iPad simulator, icon appears but app needs a new iPad ui.

change back to "iPhone" and the app icon is missing again in iPad. really confusing.

I tried to create a new project and make the same changes but never able to make the icon missing again.

I'm using cocoa pods if that makes any sense.

I think I'm missing a settings or something else, I'm really trying to find it, any advice would be greatly appreciated.

like image 220
karpat Avatar asked Oct 15 '17 19:10

karpat


2 Answers

I've found the problem.

In info.plist, there was an extra or problematic entry. - CFBundleIcons~ipad

Remove this line and iPad icons appear normally.

like image 170
karpat Avatar answered Sep 29 '22 15:09

karpat


I've had a few legacy apps that did have the CFBundleIcons~ipad in the Info.plist, so I check that first. However, I've also had instances where it was just missing the asset as @Mike Gledhill mentioned. If this is the case, you don't have to go through adding a new AppIcon set. Just check the iPad box in the Attributes Inspector for the current AppIcon assets and the iPad sizes will show in the current set. Then just add the correct assets for each size requirement.

Attribute Inspector

like image 22
FromTheStix Avatar answered Sep 29 '22 14:09

FromTheStix