maui icon indicating copy to clipboard operation
maui copied to clipboard

iOS not show splash screen

Open Hardikzinzala opened this issue 1 year ago • 2 comments

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

Hardikzinzala avatar Jan 26 '24 07:01 Hardikzinzala

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!

jfversluis avatar Jan 26 '24 09:01 jfversluis

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.

ghost avatar Jan 26 '24 09:01 ghost

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.

ghost avatar Jan 30 '24 17:01 ghost

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

Cr15Denis avatar Jan 31 '24 02:01 Cr15Denis

@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.

Baraiboapex avatar Mar 05 '24 21:03 Baraiboapex

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 avatar Mar 06 '24 07:03 QianaJiao

@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 avatar Mar 06 '24 15:03 Cr15Denis

@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.

jfversluis avatar Mar 06 '24 18:03 jfversluis

Duplicate of https://github.com/xamarin/xamarin-macios/issues/18469

jfversluis avatar Mar 06 '24 18:03 jfversluis