如果该应用程序支持iOS 8或更早版本,Assets.car不能包含16位或P3资产? [英] Assets.car can't contain 16-bit or P3 assets if the app supports iOS 8 or earlier?

查看:146
本文介绍了如果该应用程序支持iOS 8或更早版本,Assets.car不能包含16位或P3资产?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人上载到iTunesConnect时遇到此错误.将上载程序获取到使用iTunes store验证资产"时,出现以下错误:

Has anyone come across this error when uploading to iTunesConnect. Upload precess gets to "Verifying assets with iTunes store" the I get the following error:

我正在使用xCode8,将自定义贴纸应用程序嵌入到现有的iOS应用程序中.我已暂时删除了不干胶标签资产,并添加了苹果示例消息图标来测试是否是造成问题的是我的不干胶标签资产,但是在验证时我收到了相同的错误.有什么想法吗?

I am working with xCode8, embedding a custom sticker app within an existing iOS application. I have temporarily removed sticker assets and included apple sample message icons to test if it was my sticker assets that were causing the issue, however when validating I receive the same error. Any thoughts?

推荐答案

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

In short: There are pictures in your bundle that have a non-supported format. You can either adjust the format of these images or increase your minimum iOS version of your target. Keep in mind that the latter is only a hotfix and probably not what you want to do, because it would decrease your potential user base because of a very solvable problem.

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

Part 1 will explain how to find out which pictures are the offending ones.

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

Part 2 shows you how to adjust the picture format so that iTunesConnect is happy with it. If you only have a handful of images, you can skip to Part 2 and check them manually.

第1部分:识别有问题的图像:

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

The Apple Developer Forum has a thread on this: https://forums.developer.apple.com/thread/60919

可接受的解决方案如下:

The accepted solution is as follows:

如何解决"ERROR ITMS-90682:无效的捆绑包-如果该应用程序支持iOS 8或更早版本,则'Payload/XXXXX/Assets.car'上的资产目录不能包含16位或P3资产."

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."

对于Xcode 8 GM,如果在针对iOS 9.3之前的iOS版本的应用程序提交中包含16位或P3资产,则会发生此错误.如果您的应用程序需要多种颜色功能,则必须将Deployment Target更改为iOS 9.3或更高版本.如果您的应用不需要广泛的色彩功能,并且希望将其部署到较旧的iOS版本,则应将所有16位或P3资源替换为8位sRGB资源.

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.

通过在iTunes Connect的错误消息中命名的资产目录上运行"assetutil",可以找到16位或P3资产.以下步骤概述了该过程: 1.创建一个可检查的.ipa文件.在Xcode管理器(Xcode-> Window-> Organizer)中,选择要检查的档案,单击导出...",然后选择为企业或临时部署导出",这将创建的本地副本.适用于您应用的ipa文件. 2.找到该.ipa文件,并将其扩展名更改为.zip. 3.展开.zip文件.这将产生一个包含.app捆绑包的有效负载文件夹. 4.打开终端,然后将工作目录更改为.app捆绑包的顶层 cd path/to/Payload/your.app

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. 使用查找工具在.app捆绑包中找到Assets.car文件,如下所示: 找 . -名称"Assets.car"

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

使用assetutil工具在应用程序具有的每个Assets.car中查找任何16位或P3资产,如下所示. : 须藤xcrun --sdk iphoneos assetutil --info/path/to/a/Assets.car>/tmp/Assets.json

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

检查所得的/tmp/Assets.json并查找包含"DisplayGamut"的所有内容:"P3"及其关联的"Name".这将是包含一个或多个16位或P3资产的映像集的名称.

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.

将这些资产替换为8位/sRGB资产,然后重新构建您的应用.

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

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

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

Open the "Information" of the offending file (CMD+I). Check your color profile.

我不知道哪些配置文件完全正确,哪些配置文件不正确,但是我的"Adob​​e RGB(1998)"当然被拒绝了. 因此,我使用了"Color Synch Utility"(OSX附带). (右键单击图像,使用...打开)

I don't know which profiles exactly are fine and which are not, but my "Adobe RGB (1998)" certainly got rejected. So I used "Color Synch Utility" (comes with OSX). (Right click on the image, open with...)

现在在底部,您可以分配其他颜色配置文件:

Now at the bottom you have the possiblity to assign a different color profile:

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

Now if you inspect your image again it should look like this:

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

Now replace your previous image(s) and try again. This worked for me, I hope this helps you.

这篇关于如果该应用程序支持iOS 8或更早版本,Assets.car不能包含16位或P3资产?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆