Xcode 4.1 Archive Build in Organizer 不显示图标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6808357/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:33:17  来源:igfitidea点击:

Xcode 4.1 Archive Build in organizer doesn't show icon

iosxcodeios4xcode4app-store-connect

提问by mservidio

My application icon's work fine when displaying on iPad and iPhone, however after I build for archive, and create the archive, there is no icon shown. Any ideas? I've looked around at several forums and haven't found a resolution. I actually don't believe this has any effect on the actual distribution deployment, as the .ipa definitely has the icons bundled with it. I've loaded it directly into iTunes to verify that.

我的应用程序图标在 iPad 和 iPhone 上显示时工作正常,但是在我为存档构建并创建存档后,没有显示图标。有任何想法吗?看了好几个论坛都没找到解决办法。我实际上不相信这对实际的分发部署有任何影响,因为 .ipa 肯定有捆绑的图标。我已将其直接加载到 iTunes 中以进行验证。

See screenshots below, I already have "Icon File" (CFBundleIconFile) and "Icon Files" (CFBundleIconFiles) defined.

看下面的截图,我已经定义了“图标文件”(CFBundleIconFile)和“图标文件”(CFBundleIconFiles)。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

回答by mservidio

Hate to answer my own question, though a light bulb just went off in my head. Within Xcode 4 organizer archives, applications are grouped. As in if you archive 5 versions, you select the application on the left pane, and than the 5 versions show on the right pane. This lead me to believe that it's not actually the application icons that are used to show the grouped application on the left pane, but the actual iTunesArtwork file. So I added it to the CFBundleIconFiles collection, and it worked!

讨厌回答我自己的问题,尽管我脑子里有一个灯泡熄灭了。在 Xcode 4 管理器档案中,应用程序被分组。就像您归档 5 个版本一样,您在左侧窗格中选择应用程序,然后在右侧窗格中显示 5 个版本。这让我相信它实际上不是用于在左窗格中显示分组应用程序的应用程序图标,而是实际的 iTunesArtwork 文件。所以我将它添加到 CFBundleIconFiles 集合中,并且它起作用了!

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

回答by mservidio

I think it's because you don't have the 512x512 iTunesArtwork file.

我认为这是因为您没有 512x512 的 iTunesArtwork 文件。

enter image description here

在此处输入图片说明

回答by amrox

You have an empty entry for CFBundleIconFile. If you remove it completely it shouldwork.

您有一个空条目CFBundleIconFile。如果您完全删除它,它应该可以工作。

Icon handling in the Xcode Organizer has been a bit buggy in the past, so I wouldn't put too much stock in it. Just make sure the icons are displaying correctly on the actual platforms you intend to ship on.

过去,Xcode Organizer 中的图标处理有点问题,所以我不会在里面放太多东西。只需确保图标在您打算发布的实际平台上正确显示。