uni-app 云打包完成提交到ios提示Asset validation failed (90058)

发布于 1周前 作者 yuanlaile 来自 Uni-App

uni-app 云打包完成提交到ios提示Asset validation failed (90058)

开发环境与版本信息

项目 详情
产品分类 uniapp/App
PC开发环境操作系统 Windows
PC开发环境版本号 22H2
HBuilderX类型 正式
HBuilderX版本号 4.06
手机系统 iOS
手机系统版本号 iOS 15
手机厂商 苹果
手机机型 14
页面类型 vue
vue版本 vue3
打包方式 云端
项目创建方式 HBuilderX

操作步骤

云打包完成提交到ios提示Asset validation failed (90058)
This bundle is invalid. The value for key CFBundleVersion [e508948e31] in the Info.plist file must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion (ID: f1e09344-65b3-47e8-9062-5cd02f4199a8)

应用版本名称:2.0.5
应用版本号:116
manifest.json中配置:
“versionName” : “2.0.5”,
“versionCode” : 116,
ios下载地址:https://mp-ba850ae9-7c41-4c59-bc12-48ed42ff91be.cdn.bspapp.com/cloudstorage/__UNI__0AA3071_20240326120450.ipa

预期结果

成功提交

实际结果

提交失败
云打包完成提交到ios提示Asset validation failed (90058)
This bundle is invalid. The value for key CFBundleVersion [e508948e31] in the Info.plist file must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion (ID: f1e09344-65b3-47e8-9062-5cd02f4199a8)

应用版本名称:2.0.5
应用版本号:116
manifest.json中配置:
“versionName” : “2.0.5”,
“versionCode” : 116,
ios下载地址:https://mp-ba850ae9-7c41-4c59-bc12-48ed42ff91be.cdn.bspapp.com/cloudstorage/__UNI__0AA3071_20240326120450.ipa

bug描述

云打包完成提交到ios提示Asset validation failed (90058)
This bundle is invalid. The value for key CFBundleVersion [e508948e31] in the Info.plist file must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion (ID: f1e09344-65b3-47e8-9062-5cd02f4199a8)

应用版本名称:2.0.5
应用版本号:116
manifest.json中配置:
“versionName” : “2.0.5”,
“versionCode” : 116,
ios下载地址:https://mp-ba850ae9-7c41-4c59-bc12-48ed42ff91be.cdn.bspapp.com/cloudstorage/__UNI__0AA3071_20240326120450.ipa


15 回复

versionCode得是一个数字吧,不能是字符串,错误提示应该是这个意思


字符串试过 数字也试过 都是上面的问题

求助求助

versionCode 改成数字 并且要大于之前提交的code

versionCode改成了数字 已经大于之前提交的 也是不行

回复 萌萌萌: 不行提示的什么 原文发出来

回复 萌萌萌: 如果原文没变 你检查下你是不是给错Ipa了

回复 萌萌萌: 如果还不行把你ipa发出来看下

回复 DCloud_iOS_WZT: 改成了数字 提示的还是最上面的错误 90058最新云打包出来的ipa文件地址https://mp-ba850ae9-7c41-4c59-bc12-48ed42ff91be.cdn.bspapp.com/cloudstorage/UNI0AA3071_20240327131841.ipa

已解决,检查了插件中的版本号,插件中的版本号问题

Error: [ContentDelivery.Uploader.600000F1C340] Asset validation failed (90022) Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120x120’ pixels, in .png format for iOS versions >= 10.0. To support older versions of iOS, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface (ID: bcca1019-0047-41eb-a0f4-80bc088de722) 2025-01-07 11:43:17.479 [ContentDelivery.Uploader.600000F1C340] ============= UPLOAD FAILED with 1 error. ============= 2025-01-07 11:43:17.483 ** Error: Error uploading ‘/Documents/downZipPath/2bb6af451259493eb49352a35e42d234/2bb6af451259493eb49352a35e42d234.ipa’. 2025-01-07 11:43:17.484 Error: Asset validation failed Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120x120’ pixels, in .png format for iOS versions >= 10.0. To support older versions of iOS, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface (ID: bcca1019-0047-41eb-a0f4-80bc088de722) (90022) { NSLocalizedDeion = “Asset validation failed”; NSLocalizedFailureReason = “Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120x120’ pixels, in .png format for iOS versions >= 10.0. To support older versions of iOS, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface (ID: bcca1019-0047-41eb-a0f4-80bc088de722)”; NSUnderlyingError = “Error Domain=IrisAPI Code=-19241 “Asset validation failed” UserInfo={status=409, detail=Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120x120’ pixels, in .png format for iOS versions >= 10.0. To support older versions of iOS, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface, id=bcca1019-0047-41eb-a0f4-80bc088de722, code=STATE_ERROR.VALIDATION_ERROR.90022, title=Asset validation failed, NSLocalizedFailureReason=Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120x120’ pixels, in .png format for iOS versions >= 10.0. To support older versions of iOS, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface, NSLocalizedDeion=Asset validation failed}”; “iris-code” = “STATE_ERROR.VALIDATION_ERROR.90022”; }

我的也是这个问题请问一下,是哪插件问题?

在处理 uni-app 云打包完成后提交到 iOS 时遇到的 Asset validation failed (90058) 错误时,通常这指的是提交到 App Store Connect 的应用包中存在资源文件验证失败的问题。这类问题可能由多种原因引起,比如资源文件损坏、格式不支持、文件缺失、图标或启动图尺寸不正确等。

由于直接定位具体错误原因需要具体分析你的项目文件,这里我将提供一个通用的检查和修正流程,并通过代码示例展示如何检查和调整一些常见的资源文件问题。

步骤 1: 检查图标和启动图

确保你的 manifest.json 中配置的图标和启动图路径正确,且文件符合 Apple 的要求。例如:

"mp-weixin": { // 这里以微信小程序配置为例,iOS配置类似
    "appid": "your-app-id",
    "setting": {
        "iconPath": "static/icon.png",
        "splashScreen": "static/splash.png",
        // 确保这些图片符合iOS规范,如icon应为PNG格式,大小正确
    }
}

对于 iOS,你可能需要在 manifest.json 或其他配置文件中明确指定不同尺寸的图标和启动图。

步骤 2: 清理和重建项目

在确认所有资源文件无误后,尝试清理并重新构建项目:

# 假设你使用的是HBuilderX,可以在命令行中执行以下命令
hbuilderx clean
hbuilderx cloud-package -t ios

步骤 3: 验证IPA包

在上传之前,你可以使用工具如 App Thinnerotoollipo 等检查IPA包中的资源文件是否完整且未损坏。这里不展开具体命令使用,因为这些工具主要用于分析已打包的二进制文件。

步骤 4: 重新上传

使用 Xcode 或 Application Loader 重新上传你的IPA包到 App Store Connect。

注意事项

  • 确保所有资源文件(尤其是图标和启动图)都是无损的PNG或JPEG格式。
  • 检查 Info.plist 中关于图标和启动图的配置是否与实际文件匹配。
  • 如果使用了第三方库或插件,确保它们没有引入不兼容的资源文件。

由于无法直接访问你的项目文件,以上提供的是一个基于通用经验的解决方案。如果问题依旧存在,建议详细检查Xcode的构建设置和日志输出,寻找更具体的错误信息。

回到顶部