saramgsilva
saramgsilva

Reputation: 762

MauiSplashScreen doe not works in my iOS app

following the documentation, I defined my splash screen as following:

<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#0066B3" BaseSize="128,128" />

but it show me a black screen

enter image description here

I just found different workarounds but it does not works for me, for example:

Why it is black?

Note: I am using Visual Studio 2022 connected/paired to a MAC, and I am using iPhone 15 iOS 17.0

Upvotes: 0

Views: 1477

Answers (1)

Liqun Shen-MSFT
Liqun Shen-MSFT

Reputation: 8220

You may have ran into a known issue which causes iOS splashscreen to be a black screen.

Apps have a black splash screen on latest simulators

From @rolfbjarne comment, that because iOS 16.4+ apparently requires apps to be signed to load the launch screen.

For a workaround, you may open your csproj file and add the following code in it,

<PropertyGroup>
    <EnableCodeSigning>true</EnableCodeSigning>
    <CodesignRequireProvisioningProfile>true</CodesignRequireProvisioningProfile>
    <DisableCodesignVerification>true</DisableCodesignVerification>
</PropertyGroup>

For more info, please refer to Enable codesigning by default in the simulator.

Upvotes: 3

Related Questions