iTunesArtwork 和 XCode

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

iTunesArtwork and XCode

iphonexcode

提问by sujal

I'm trying to add the iTunesArtwork file to my iPhone application in order to follow the guidelines for icons/artwork for iTunes. I've added a file that matches the iTunesArtwork requirements (512x512 JPG) to my project. Once I do that, I can no longer install the application on my device. I keep getting this error:

我正在尝试将 iTunesArtwork 文件添加到我的 iPhone 应用程序中,以便遵循 iTunes 图标/图稿指南。我已将一个符合 iTunesArtwork 要求 (512x512 JPG) 的文件添加到我的项目中。一旦我这样做了,我就无法再在我的设备上安装该应用程序。我不断收到此错误:

Your mobile device has encountered an unexpected error (0xE8000058)

iTunesArtworkCaptureFailed

您的移动设备遇到意外错误 (0xE8000058)

iTunesArtworkCaptureFailed

Does anyone have any experience resolving this?

有没有人有解决这个问题的经验?

回答by paulthenerd

In the case of an ad hoc build, I've had some success doing the following:

在临时构建的情况下,我在以下方面取得了一些成功:

  • Create a 512x512 png of the icon/artwork you want to show up in iTunes.
  • Rename the file to iTunesArtwork(with no extension and that capitalization) and place it in your app root folder and then add it at the top level of your application resources in xcode.
  • Rebuild the app in release for the device version you are deploying to
  • 创建一个 512x512 的 png,将您想要在 iTunes 中显示的图标/艺术品。
  • 将文件重命名为iTunesArtwork(没有扩展名和大写)并将其放在您的应用程序根文件夹中,然后将其添加到 xcode 中应用程序资源的顶层。
  • 为您要部署到的设备版本在 release 中重建应用程序

I've had this work with ad hoc builds, but to be honest I took it out because it works when I do provisioned release builds and causes the error you show there when I do debug builds and try to run on the simulator. It wasn't worth the hassle of adding and removing the file from the project for me.

我已经在临时构建中完成了这项工作,但老实说,我将它删除了,因为它在我进行预配置发布构建时有效,并导致您在调试构建并尝试在模拟器上运行时显示的错误。对我来说,从项目中添加和删除文件的麻烦是不值得的。

回答by JamesSugrue

I'm pretty sure that file needs to be a .png not .jpg?

我很确定该文件需要是 .png 而不是 .jpg?

Try removing the file, doing a clean, then re adding the file as iTunesArtwork

尝试删除文件,进行清理,然后将文件重新添加为 iTunesArtwork

BTW you don't need that file - it's just so that Adhoc distribution has the icon show up in iTunes - it's not needed for App Store apps. They get the icon from a combo of the 57x57 icon and the 512 image you upload to iTunesConnect.

顺便说一句,您不需要该文件 - 只是为了让 Adhoc 发行版在 iTunes 中显示该图标 - App Store 应用程序不需要它。他们从 57x57 图标和您上传到 iTunesConnect 的 512 图像的组合中获取图标。