maui
maui copied to clipboard
iOS not show splash screen
Description
- I am working with .net maui 8 .
- when i try to launch my app on iOS so that not show splash screen only show black screen.
- But android work properly
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.6
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.101
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
What version of Visual Studio are you using? What have you already tried and didn't work? Have you tried on the Simulator or also a physical device? What version of iOS? If you want us to diagnose this properly and help you we're going to need a bit more detail I'm afraid 😄
Thanks!
Hi @Hardikzinzala. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
Hello, I also have the same problem with the iOS splash screen, now I am using vs code but it also gives the problem in visual studio mac. I have everything updated to .net 8, I have done clean installations but nothing.
https://github.com/dotnet/maui/assets/70722700/37b00ab8-a3c2-44d3-a897-a1787373535e
@Hardikzinzala I was having the same issue as well, and while I was following this tutorial video:
https://www.youtube.com/watch?v=xkHNbrpi3ZQ
I learned that as of iOS ~16.4 you will NOT be able to see your splash screen on an IOS simulator. Therefore, the code containing your splash screen must be codesigned first before you can view it (for some reason). If you have access to a physical device for testing, that would be your best bet to view it.
So, give that a try and when you have the chance, let us know how that worked out.
We already have a similar issue: https://github.com/xamarin/xamarin-macios/issues/18469. And below is the workaround: You could add the following to the csproj:
<PropertyGroup>
<EnableCodeSigning>true</EnableCodeSigning>
<CodesignRequireProvisioningProfile>true</CodesignRequireProvisioningProfile>
<DisableCodesignVerification>true</DisableCodesignVerification>
</PropertyGroup>
Hope it helps you.
@QianaJiao
Thank you for your comments, it is only in emulators that the problem is not on physical devices. I'm going to try the solution you shared with me.
@Cr15Denis that sounds right because running on the Simulator by default you app is not signed. On a device it is. So this is the same thing and the proposed workaround should be sufficient for now.
Duplicate of https://github.com/xamarin/xamarin-macios/issues/18469