Changing alternate icon for iPad

后端 未结 6 901
粉色の甜心
粉色の甜心 2021-02-07 02:24

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

6条回答
  •  佛祖请我去吃肉
    2021-02-07 03:05

    Your info.plist is structured incorrectly.

    You have:

    - CFBundleIcons
      - CFBundleAlternateIcons
        - Icon Name
          - CFBundleIconFiles
          - CFBundleIconFiles~ipad
    

    But it should be:

    - CFBundleIcons
      - CFBundleAlternateIcons
        - Icon Name
          - CFBundleIconFiles
    - CFBundleIcons~ipad
      - CFBundleAlternateIcons
        - Icon Name
         - CFBundleIconFiles
    

    Basically, once you have it working with iPhone icons, CFBundleIcons, duplicate the entire tree as CFBundleIcons~ipad. The iPad files shouldn't be nested under CFBundleIcons at all.

    You're mixing up CFBundleIcons~ipad and CFBundleIconFiles~ipad (which isn't a valid key).

提交回复
热议问题