gpt4 book ai didi

upload - 如果该应用程序支持iOS 8或更早版本,Assets.car不能包含16位或P3 Assets ?

转载 作者:行者123 更新时间:2023-12-03 07:54:36 25 4
gpt4 key购买 nike

有没有人在上传到iTunesConnect时遇到此错误。将上载程序获取到“使用iTunes store验证 Assets ”时,出现以下错误:

enter image description here

我正在使用xCode8,将自定义贴纸应用程序嵌入现有的iOS应用程序中。我已经临时删除了标签 Assets ,并添加了苹果示例消息图标来测试是否是导致问题的原因是我的标签 Assets ,但是在验证时我收到了相同的错误。有什么想法吗?

最佳答案

简而言之:
bundle 销售中的某些图片格式不受支持。
您可以调整这些图像的格式,也可以增加目标的最低iOS版本。请记住,后者只是一个修补程序,可能不是您想要的操作,因为由于一个非常可解决的问题,它将减少您的潜在用户群。

第1部分将说明如何找出哪些图片是令人讨厌的图片。

第2部分向您展示如何调整图片格式,以使iTunesConnect满意。如果只有少量图像,则可以跳至第2部分并手动检查它们。

第1部分:确定有问题的图像:

苹果开发者论坛对此有一个主题:
https://forums.developer.apple.com/thread/60919

可接受的解决方案如下:

How to resolve "ERROR ITMS-90682: Invalid Bundle - The asset catalog at 'Payload/XXXXX/Assets.car' can't contain 16-bit or P3 assets if the app supports iOS 8 or earlier."

With Xcode 8 GM, this error will occur if you include 16-bit or P3 assets in an app submission targeting iOS releases earlier then iOS 9.3. If your app requires wide color functionality you must change your Deployment Target to iOS 9.3 or later. If your app does not require wide color functionality and you wish to deploy it to older iOS versions then you should replace all 16-bit or P3 assets with 8-bit sRGB assets.

You can find 16-bit or P3 assets by running “assetutil” on the asset catalog named in the error message from iTunes Connect. The following steps outline the process: 1. Create an Inspectable .ipa file. In the Xcode Organizer (Xcode->Window->Organizer), select an archive to inspect, click “Export...", and choose "Export for Enterprise or Ad-Hoc Deployment". This will create a local copy of the .ipa file for your app. 2. Locate that .ipa file and change its the extension to .zip. 3. Expand the .zip file. This will produce a Payload folder containing your .app bundle. 4. Open a terminal and change the working directory to the top level of your .app bundle cd path/to/Payload/your.app

  1. Use the find tool to locate Assets.car files in your .app bundle as shown below: find . -name 'Assets.car'

  2. Use the assetutil tool to find any 16-bit or P3 assets, in each Assets.car your application has as shown below. : sudo xcrun --sdk iphoneos assetutil --info /path/to/a/Assets.car > /tmp/Assets.json

  3. Examine the resulting /tmp/Assets.json and look for any contents containing “DisplayGamut": “P3” and its associated “Name". This will be the name of your imageset containing one or more 16-bit or P3 assets.

  4. Replace those assets with 8-bit / sRGB assets, then rebuild your app.



第2部分:调整图像的颜色配置文件以与iTunesConnect一起很好地播放

打开有问题的文件(CMD + I)的“信息”。
检查您的颜色配置文件。

Color profile that was not accepted

我不知道哪些配置文件完全正确,哪些配置文件不是,但是我的“Adob​​e RGB(1998)”当然被拒绝了。
因此,我使用了“色彩同步实用程序”(OSX附带)。 (右键单击图像,使用...打开)

现在在底部,您可以分配其他颜色配置文件:
Assigning a different color profile with Color Synch Utility

现在,如果您再次检查图像,它应该看起来像这样:
Color profile after converting

现在替换以前的图像,然后重试。
这对我有用,希望对您有所帮助。

关于upload - 如果该应用程序支持iOS 8或更早版本,Assets.car不能包含16位或P3 Assets ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39228601/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com