.NET MAUI 中的资产验证失败 (90476)

问题描述 投票:0回答:1

当我将 MAUI iOS 应用程序上传到传输应用程序时,我收到此错误。我正在使用自定义的splash.xaml。适用于 Android 和 iOS。我还删除了 MAUI 项目中的默认启动屏幕。我还在 iOS 文件夹中创建了 LaunchScreen.storyboard。

> Asset validation failed (90476)

Invalid bundle. Because your app supports Multitasking on iPad, you need to include the LaunchScreen launch storyboard file in your com.addovation.ios.mobileaction bundle. Use UILaunchScreen instead if the app’s MinimumOSVersion is 14 or higher and you prefer to configure the launch screen without storyboards. For details, see:
https://developer.apple.com/documentation/bundleresources/information_property_list/uilaunchstoryboardname
(ID: 5aeb38d6-340b-4186-b35f-c78b7df8144e)

这是我的信息.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>
xamarin maui
1个回答
0
投票

如果您想设置

RequiresFullScreen
对于 iPhone,并支持 iPad 多任务,请尝试以下代码:

<key>UILaunchStoryboardName~ipad</key>
<string>LaunchScreenIPad.storyboard</string>
<key>UIRequiresFullScreen</key>
<true/>
<key>UIRequiresFullScreen~ipad</key>
<false/>

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.