After upgrade on iOS 15 the app has loss the ability to change alternate icon. I didnt found any changes in documentation.
How to set alternate icon on ios 15?
Claude31, thanks for your answer.
• This is part of info.plist with icons parameters:
<key>CFBundleIcons</key>
<key>CFBundleAlternateIcons</key>
<key>aero</key>
<key>CFBundleIconFiles</key>
<array>
<string>aero</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
<key>CFBundlePrimaryIcon</key>
<key>CFBundleIconFiles</key>
<array/>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
<key>CFBundleAlternateIcons</key>
<key>aero</key>
<key>CFBundleIconFiles</key>
<array>
<string>aero</string>
</array>
<key>UIPrerenderedIcon</key>
<false/>
</dict>
</dict>
<key>CFBundlePrimaryIcon</key>
<key>CFBundleIconFiles</key>
<array>
<string></string>
</array>
</dict>
</dict>
• No, supportsAlternateIcons property is set to false on ios 15.
What could be wrong?
I could not check your info.plist structure, butI'm surprised not to find primary icon at top level.
Have a look here, it explains in details
h t t p s : / / w w w.hackingwithswift.com/example-code/uikit/how-to-change-your-app-icon-dynamically-with-setalternateiconname
• No, supportsAlternateIcons property is set to false on ios 15
How did you check ?
Did you provide all icon sizes required ?
have also a look at this old thread on the forum:
https://developer.apple.com/forums/thread/676555
I tried to check whether the project supports changing App icons, but the console shows supportsAlternateIcons is false.
When I created a new demo to test, I found that regardless of whether CFBundleIcons is added, supportsAlternateIcons is true.
Same environment, same main thread.
So I think Apple should explain under what circumstances supportsAlternateIcons will be false, and how developers should adapt it?
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the
Apple Developer Forums Participation Agreement and Apple provided code is subject to the
Apple Sample Code License.
Forums
Apple Developer Program
Apple Developer Enterprise Program
App Store Small Business Program
MFi Program
News Partner Program
Video Partner Program
Security Bounty Program
Security Research Device Program