I have a problem with changing app\'s icon on iPad. Everything is working fine on iPhone but on iPad I get this error :
[default] Failed to set preferred
With below structure i'm able to change icon in iPad:
if #available(iOS 10.3, *) {
let newAppIconName = "Icon2"
guard UIApplication.shared.alternateIconName != newAppIconName else { return }
UIApplication.shared.setAlternateIconName(newAppIconName)
}
}
Plist Code:
CFBundleIcons
CFBundlePrimaryIcon
CFBundleIconFiles
AppIcon
UIPrerenderedIcon
CFBundleAlternateIcons
Icon2
CFBundleIconFiles
icon60
CFBundleIcons~ipad
iTunesArtwork80.png
UIPrerenderedIcon