You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

.NET MAUI iOS上传Transporter遇Asset validation failed(90476)错误求助

MAUI iOS上传Transporter时Asset validation failed(90476)错误解决

问题描述

我在将MAUI iOS应用上传至Transporter应用时,遇到了Asset validation failed(90476)错误。我使用自定义splash.xaml同时适配Android和iOS,已移除MAUI项目中的默认启动屏,并在iOS文件夹内创建了LaunchScreen.storyboard。

错误信息

Asset validation failed (90476)

Invalid bundle. 因为你的应用在iPad上支持多任务,你需要在com.addovation.ios.mobileaction包中包含LaunchScreen启动故事板文件。如果应用的MinimumOSVersion为14或更高,且你希望不使用故事板配置启动屏,请改用UILaunchScreen。

当前Info.plist配置

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UIDeviceFamily</key>
    <array>
        <integer>1</integer>
        <integer>2</integer>
    </array>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>arm64</string>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>XSAppIconAssets</key>
    <string>Assets.xcassets/appicon.appiconset</string>
    <key>CFBundleName</key>
    <string>Test App</string>
    <key>CFBundleDisplayName</key>
    <string>Mobile Action</string>
    <key>CFBundleIdentifier</key>
    <string>test.ios.app</string>
    <key>CFBundleShortVersionString</key>
    <string>3.0.0</string>
    <key>CFBundleVersion</key>
    <string>3.0.0</string>
    <key>MinimumOSVersion</key>
    <string>16.0</string>
    <key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>CFBundleURLName</key>
            <string>test.ios.app</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>msauth.test.ios.app</string>
            </array>
        </dict>
    </array>
    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>mailto</string>
    </array>
    <key>UIBackgroundModes</key>
    <array>
        <string>fetch</string>
    </array>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
</dict>
</plist>

解决方法

1. 检查LaunchScreen.storyboard的生成操作

  • 在Visual Studio中找到iOS文件夹下的LaunchScreen.storyboard
  • 右键选择「属性」,将生成操作设置为BundleResource,确保该文件会被正确打包进iOS安装包

2. 消除MAUI启动屏配置冲突

  • 确认项目的.csproj文件中已移除默认启动屏的引用,比如添加:
    <MauiSplashScreen Remove="Resources\Splash\splash.svg" />
    
  • 确保没有在.csproj中为iOS指定其他启动屏文件

3. 处理iPad多任务要求(二选一)

选项A:关闭iPad多任务(简单快速)

在Info.plist中添加以下配置,强制应用全屏运行,绕过多任务相关的启动屏检查:

<key>UIRequiresFullScreen</key>
<true/>

选项B:保留多任务,修复LaunchScreen.storyboard

  • 打开LaunchScreen.storyboard,确保布局适配所有iPad支持的方向(你的配置里包含了4种方向)
  • 为storyboard中的所有元素添加正确的自动布局约束,保证在不同屏幕尺寸下都能正常显示

4. 清理重建项目

  • 删除项目的bin和obj文件夹
  • 重新生成iOS项目,再尝试打包上传至Transporter

内容的提问来源于stack exchange,提问作者A M N Kumari

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 03:05:12