Questions tagged [cfbundleicons]

Use this tag for question related to IOS property list CFBundleAlternateIcons dictionary for programmatically change the IOS app's icon.

CFBundleAlternateIcons allows to change the IOS app's icon programmatically. CFBundleAlternateIcons dictionary has to be placed in Info.plist file following this schema:

<key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>Icon-1</string>
        </array>
        <key>UIPrerenderedIcon</key>
        <false/>
    </dict>
    <key>CFBundleAlternateIcons</key>
    <dict>
        <key>AppIcon-2</key>
        <dict>
            <key>CFBundleIconFiles</key>
            <array>
                <string>Icon-2</string>
            </array>
            <key>UIPrerenderedIcon</key>
            <false/>
        </dict>
        <key>AppIcon-3</key>
        <dict>
            <key>CFBundleIconFiles</key>
            <array>
                <string>Icon-3</string>
            </array>
            <key>UIPrerenderedIcon</key>
            <false/>
        </dict>
    </dict>
</dict>

As soon as you have your property list configured you have to call the method setAlternateIconName(), which takes an icon name to change to or nil to use the app’s default icon.

5 questions
3
votes
0 answers

Xcode 11.3.1 gives me No image found at path referenced under key CFBundleIcons appIconXX error when I try to validate my app

I am about to launch my ios app but when I do a product>archive>validate app I get the errors "gives me No image found at path referenced under key CFBundleIcons" for all my…
user2722667
  • 8,195
  • 14
  • 52
  • 100
2
votes
1 answer

Xcode 11 - App Icons - invalid image path

I am trying to upload my app to App Store Connect. I know this question has been asked before, but I tried every solution I could find for days without success. Here is the error message: ERROR ITMS-90022: "Missing required icon file. The bundle…
coder1234
  • 21
  • 1
  • 3
1
vote
1 answer

Xcode/iOS - CFBundleAlternateIcons not changing

I've been trying to change my app icon using CFBundleAlternateIcons, but nothing happens. I'm actually using a plugin for the Flutter SDK - flutter_dynamic_icon, when I change the icon using the plugin, it says 'App icon change successful' as if…
Jake
  • 1,906
  • 9
  • 32
  • 60
0
votes
1 answer

Alternate Icons not included in iPadOS build of app's CFBundleAlternateIcons

I'm developing a SwiftUI app and have implemented app icon switching. I walk the list of CFBundleAlternateIcons from the main bundle's CFBundleIcons key at runtime to display the list of options the user can select from. All is well when running on…
Jeff Nouwen
  • 335
  • 1
  • 4
  • 9
0
votes
1 answer

Flutter - Can not change app icon programmatically using CFBundleAlternateIcons

I've been trying to change my app icon using CFBundleAlternateIcons, but nothing happens. I'm actually using a plugin for the Flutter SDK - flutter_dynamic_icon, when I change the icon using the plugin, it show a popup says 'You have changed the…
chuanpham
  • 112
  • 1
  • 9