具有多个目标的Asset Catelog问题 [英] Asset Catelog issue with multiple targets

查看:142
本文介绍了具有多个目标的Asset Catelog问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含多个目标的项目。假设目标被命名为Target-A,Target-B等。对于每个目标,我都有一个不同的App Icons资产目录。它们被命名为AppIcon-A,AppIcon-B,它继续用于所有目标。我已将相应的资产目录分配给所有目标,但它仅在我在设备/模拟器上运行时显示Target-A的图标。对于所有其他目标,它不会设置任何图标并显示iOS 7默认占位符图标。
请帮助!

I have a project with multiple targets. Assume the targets are named Target-A, Target-B and so on. For every target I have a different asset catalog of App Icons. They are named as AppIcon - A, AppIcon - B and it goes on for all the targets. I have assigned respective asset catalogs to all targets, but it only shows the icons for Target-A when i run on the device / simulator. For all other targets it does not set any icons and shows iOS 7 default placeholder icon. Please help!

推荐答案

当您添加应用程序图标图像时,请在添加应用程序图标-1时进行测试目标然后只选择测试目标而不是测试副本目标相同的测试目标。

When you are adding the app icon image please note while adding app icon-1 to Test target then select only test target not Test copy target same for Test copy target.

同时在plist中添加Icon file行并指定你的app图标名称。

Also add row for "Icon file" in both the plist and specify your app icon names.

请检查以下屏幕截图,您将获得一些想法。

Please check following screen shots you will get some ideas.

这篇关于具有多个目标的Asset Catelog问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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