What to do with CFBundleIconName and Asset Catalog App Icon Set Name build setting when having alternate app icon(s)?

风格不统一 提交于 2019-12-24 18:29:25

问题


There are various tutorials (like here and there) that explain how to add alternate app icons to an iOS app.

The addition to the MyApp.plist includes a CFBundlePrimaryIcon item. That gives me the impression this will now be used as the default icon and replaces the old/previous way of setting a single app icon using CFBundleIconName MyApp.plist entry and the Asset Catalog App Icon Set Name Xcode target build setting.

However, none of the tutorials even mentions the CFBundleIconName MyApp.plist entry nor the Asset Catalog App Icon Set Name Xcode target build setting.

Neither is discussed what to do with an AppIcon image set in the asset catalog. It's also not explained why the alternate app icons (which includes the CFBundlePrimaryIcon) are not placed in the asset catalog, but as separate files instead.

And, I have a few other questions; I don't like following magic tutorials (that have slight differences) without understanding/knowing all details.

Does anyone know where Apple documents all the details? I only found a few lines here and there that state you can now have alternate icons and which top-level .plist key to use.

来源:https://stackoverflow.com/questions/56112802/what-to-do-with-cfbundleiconname-and-asset-catalog-app-icon-set-name-build-setti

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!