Opt into app thinning for icons in asset catalog in existing project

≡放荡痞女 提交于 2020-01-01 09:43:51

问题


At WWDC 2017 Session 201 What's New in Cocoa Touch, around the 33:50 mark, it is stated that "By incorporating [icons] in Asset Catalogs, we're now able to have them participate in the app thinning, which will significantly lower your app's footprint. So, this is a really exciting thing to adopt, and it will be adopted by default in new projects in iOS 11. You can opt into it in existing projects by adding a key to your Info.plist."

What is the key you need to add in your Info.plist to enable app thinning for icons in Assets Catalogs in your existing projects? I'm not seeing it defined in the Information Property List Key Reference.


回答1:


You need to use an asset catalog for your app icon to participate in app thinning. Its not in info.plist but a setting at the target level on your project file.



来源:https://stackoverflow.com/questions/45665987/opt-into-app-thinning-for-icons-in-asset-catalog-in-existing-project

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