Xcode 的“构建和存档”命令在哪里寻找其 iTunes 图稿?

发布于 2024-09-18 13:18:55 字数 213 浏览 14 评论 0原文

我刚刚发现了“构建和存档”选项,它看起来非常好。

然而,我使用“构建和存档”构建的应用程序有一个大问号,因为它在“管理器”窗口中的图稿,而不是我漂亮的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爺獨霸怡葒院 2024-09-25 13:18:55

经过一段时间的实验,据我所知,以下是“构建和存档”如何处理应用程序图标:

1-要使图标显示在管理器窗口中,该图标必须列在应用程序 info.plist 中CFBundleIconFiles 条目中的文件。有关详细信息,请参阅技术问答 QA1686

但这与 iTunesArtwork 并没有真正的关系。

2- 要让 iTunes 显示应用程序图稿,它需要找到一个名为 iTunesArtwork(无扩展名)的 PNG 文件。据推测,该文件需要位于 .ipa 文件的根级别。不过,iTunes 也会很高兴在应用程序包本身的 .ipa 文件的更深处找到 iTunesArtwork

3- 现在回答准确的问题:

  • 问:“构建和存档”在哪里查找要包含在 .ipa 文件中的 iTunesArtwork 文件?
  • 答:没有。如果您需要 iTunesArtwork for iTunes,则需要将其包含在目标应用程序包中。这很浪费,但 iTunes 无论如何都会找到它。

至少,我根本无法让 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 find iTunesArtwork in the application bundle itself, deeper in the .ipa file.

3- Now to answer the precise question:

  • Q: Where does "Build and Archive" look for the iTunesArtwork file to include in the .ipa file?
  • A: It doesn't. If you want iTunesArtwork for iTunes, you need to include it in the target application bundle. It's wasteful, but iTunes will find it anyway.

At least, I wasn't able to have Build and Archive use my iTunesArtwork 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.

感受沵的脚步 2024-09-25 13:18:55

要使图标显示在管理器中,请从“构建和管理”中选择“管理器”。分析,包括“图标文件”键,其值为“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文