Reputation: 762
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
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
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