Xcode 4.1 Archive Build 在管理器中不显示图标
我的应用程序图标在 iPad 和 iPhone 上显示时工作正常,但是在我构建存档并创建存档后,没有显示图标。有什么想法吗?我浏览了几个论坛,但没有找到解决方案。实际上,我不认为这对实际的分发部署有任何影响,因为 .ipa 肯定捆绑了图标。我已将其直接加载到 iTunes 中进行验证。
请参阅下面的屏幕截图,我已经定义了“图标文件”(CFBundleIconFile)和“图标文件”(CFBundleIconFiles)。
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.
See screenshots below, I already have "Icon File" (CFBundleIconFile) and "Icon Files" (CFBundleIconFiles) defined.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不想回答我自己的问题,尽管我脑子里突然灵光一闪。在 Xcode 4 管理器档案中,应用程序被分组。就像您存档 5 个版本一样,您可以在左侧窗格中选择应用程序,然后 5 个版本就会显示在右侧窗格中。这让我相信,用于在左窗格中显示分组应用程序的实际上并不是应用程序图标,而是实际的 iTunesArtwork 文件。所以我将它添加到 CFBundleIconFiles 集合中,并且它起作用了!
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!
我认为这是因为您没有 512x512 iTunesArtwork 文件。
I think it's because you don't have the 512x512 iTunesArtwork file.
您的
CFBundleIconFile
条目为空。如果您完全删除它,它应该可以工作。Xcode Organizer 中的图标处理过去有点问题,所以我不会太在意它。只需确保图标在您打算发布的实际平台上正确显示即可。
You have an empty entry for
CFBundleIconFile
. If you remove it completely it should work.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.