-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launch screen is not displayed in ios simulator xcode 15/iOS17/Sonoma #19430
Comments
I'm assuming this works on device since you changed the title; in which case this is likely a duplicate of #18469 - the problem is that the app needs to be signed for the iOS simulator to load the launch screen (this is apparently a new behavior in the iOS 16.4 simulator). Can you try the workaround and see if it works for you? <PropertyGroup Condition="$(RuntimeIdentifier.Contains('simulator'))">
<EnableCodeSigning>true</EnableCodeSigning>
<CodesignRequireProvisioningProfile>true</CodesignRequireProvisioningProfile>
<DisableCodesignVerification>true</DisableCodesignVerification>
</PropertyGroup> |
Even with the changes I am not seeing the splash screen on iOS simulator, I have repros of both, Xamarin.iOS classic - net8-ios As far as I can tell signing should be happening on both apps with my |
OK, I see the condition doesn't work, just do this: <PropertyGroup>
<EnableCodeSigning>true</EnableCodeSigning>
<CodesignRequireProvisioningProfile>true</CodesignRequireProvisioningProfile>
<DisableCodesignVerification>true</DisableCodesignVerification>
</PropertyGroup> This should work on device as well:
|
Thanks for that update @rolfbjarne. I can confirm that my two repros both work as expected and I can see the gradient splash screen when I remove |
Preamble All, this issue is quite elusive, and annoying. My first instinct was to dismiss the possibility of a missing / mispelled image file name, but that's exactly what was hosing my Xaml app on iOS and Mac Catalyst. Like many, I wanted to get rid of the purple appicon and splash screen as my first or near first [re]action. I removed the .NET splash, appiconfg (fg: foreground) and appicon and merged the two appicon files into one file called appicon.svg. In doing so, I introduced a bug on iOS and Mac Catalyst platforms. The MAUI default template refers to the appiconfg.png in AppShell.xaml (at least in Shell based projects). Resolution For My Project You must find, confirm and / or replace image file names where ever you referenced them. Additional Information Also note, you must refer to all *.svg image assets by it's post processing name. Example: [image].svg => [image].png (see MAUI Icon documentation for more on that little magic trick). |
Thanks for confirming! I'll close this as a duplicate of #18469 then. |
I would suggest filing an issue in the MAUI repository for this (https://github.com/dotnet/maui/issues/new) |
@rolfbjarne The workaround fixes the issue for me. thanks |
Steps to Reproduce
Expected Behavior
Launch screen should be displayed at the start of the application
Actual Behavior
Black screen is shown at the launch
Environment
Version information
Example Project (If Possible)
AppWithLaunch.zip
The text was updated successfully, but these errors were encountered: