为现有项目中的资产目录中的图标选择应用稀释 [英] Opt into app thinning for icons in asset catalog in existing project

查看:196
本文介绍了为现有项目中的资产目录中的图标选择应用稀释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2017年WWDC 会议201 Cocoa Touch的新功能,在33:50左右,据说通过在资产目录中加入[图标],我们现在可以让他们参与应用程序细化,这将大大降低应用程序的占用空间。所以,这是一个采用真正令人兴奋的事情,默认情况下它将在iOS 11中的新项目中采用。您可以通过在Info.plist中添加一个密钥在现有项目中选择它。

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."

您需要在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.

推荐答案

您需要使用应用程序图标的资产目录,以参与应用程序细化。
它不在info.plist中,而是在项目文件的目标级别设置。

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.

这篇关于为现有项目中的资产目录中的图标选择应用稀释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆