“图标已经包含光泽效果”在使用 SDK 7 的 xCode 5 上编译的 iOS 6 上不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18800087/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
'Icon already includes gloss effects' doesn't work on iOS 6 compiled on xCode 5 with SDK 7
提问by Dmitry
Icon already includes gloss effects
doesn't work on iOS 6 compiled on xCode 5 with SDK 7. How to fix this issue? Image assets on the project are enabled.
Icon already includes gloss effects
在带有 SDK 7 的 xCode 5 上编译的 iOS 6 上不起作用。如何解决此问题?项目上的图像资产已启用。
回答by Kirualex
As iOS7 is not under NDA anymore, here is the answer :
由于 iOS7 不再受 NDA 保护,以下是答案:
In Xcode 5 select Images.xcassets followed by your icon set. There is a "pre-rendered icon" setting that removes the gloss
在 Xcode 5 中,选择 Images.xcassets,然后选择您的图标集。有一个“预渲染图标”设置可以去除光泽
回答by sc0rp10n
If you're not wanting to switch to the asset catalog, you can add the UIPrerenderedIcon key to your plist under the CFBundlePrimaryIcon dictionary (then clean):
如果您不想切换到资产目录,您可以将 UIPrerenderedIcon 键添加到 CFBundlePrimaryIcon 字典下的 plist(然后清理):
回答by Anna Billstrom
Similar to @sc0rp10n, Xcode 5 has it listed in the plist as:
与@sc0rp10n 类似,Xcode 5 在 plist 中将其列为: