多个目标的资产目录问题 [英] Asset Catelog issue with multiple targets

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

问题描述

我有一个包含多个目标的项目.假设目标命名为 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!

推荐答案

添加应用图标图像时请注意,将应用 icon-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 中为图标文件"添加行并指定您的应用图标名称.

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.

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

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