Xcode 的“构建和存档”命令在哪里寻找其 iTunes 图稿?
我刚刚发现了“构建和存档”选项,它看起来非常好。
然而,我使用“构建和存档”构建的应用程序有一个大问号,因为它在“管理器”窗口中的图稿,而不是我漂亮的 iTunesArtwork 文件。我尝试将其以 PNG、JPG 格式包含在我的项目中,无论是否带有扩展名。
我可能错过了一些简单的事情。有什么想法吗? “构建和存档”命令在哪里查找其 iTunes 图稿?
多谢。
I just found out about the Build and Archive option, and it looks very nice.
However, my application build with Build and Archive has a big question mark as its artwork in the Organizer window, instead of my nice iTunesArtwork file. I tried to have it in my project as PNG, JPG, with or without extension.
I probably missed something simple. Any idea? Where is the Build and Archive command looking for its iTunes artwork?
Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过一段时间的实验,据我所知,以下是“构建和存档”如何处理应用程序图标:
1-要使图标显示在管理器窗口中,该图标必须列在应用程序 info.plist 中CFBundleIconFiles 条目中的文件。有关详细信息,请参阅技术问答 QA1686。
但这与 iTunesArtwork 并没有真正的关系。
2- 要让 iTunes 显示应用程序图稿,它需要找到一个名为
iTunesArtwork
(无扩展名)的 PNG 文件。据推测,该文件需要位于.ipa
文件的根级别。不过,iTunes 也会很高兴在应用程序包本身的.ipa
文件的更深处找到iTunesArtwork
。3- 现在回答准确的问题:
iTunesArtwork
文件?至少,我根本无法让
Build and Archive
使用我的iTunesArtwork
文件。我能找到的唯一获得它的方法是将其包含在应用程序包中。为此,请将其包含在您的项目中并确保它包含在应用程序目标构建项中。
这是浪费,因为安装后它不必要地使用设备上的磁盘空间。
Some time later spent experimenting, here is how "Build and Archive" cope with application icons, as far as I could see:
1- To have the icon show up in the organizer window, the icon must be listed in the application info.plist file in an CFBundleIconFiles entry. See Technical Q&A QA1686 for the details.
This is not really related to iTunesArtwork though.
2- To have iTunes show the application artwork, it needs to find a PNG file named
iTunesArtwork
(no extension). Supposedly, this file needs to be at the root level of the.ipa
file. However, iTunes will also be happy to findiTunesArtwork
in the application bundle itself, deeper in the.ipa
file.3- Now to answer the precise question:
iTunesArtwork
file to include in the .ipa file?At least, I wasn't able to have
Build and Archive
use myiTunesArtwork
file at all. The only way to have it at all that I could find is to include it in the application bundle.To do so, include it in your project and make sure it's included with the application target build items.
It's wasteful, because it needlessly uses disk space on the device after installation.
要使图标显示在管理器中,请从“构建和管理”中选择“管理器”。分析,包括“图标文件”键,其值为“Icon.png”或任何您的图像名称。不要包含双引号。除了技术问答中描述的“图标文件”键之外,还包括此键QA1686。
To get the icon to show in the Organiser, from a Build & Analyse, include the "Icon file" key with a value of just "Icon.png" or whatever your image is called. Don't include the double quotes. Include this in addition to the "Icon Files" key described in Technical Q&A QA1686.