Closed vsfeedback closed 1 year ago
I created and tested a MAUI app for our company , tested it in Visual studio current on the emulators and on physical devices with IO 16.2 and a Iphone with IOS 16.4 and it works fine , however I do not have a Physical IPad with IOS 16.4 or for a fact a emulator with IOS 16.4 ( it is 16.2) , when I submitted the app to the Apple store it was tested by Apple and to my surprise i received this message after 1 day
"Guideline 2.1 - Performance - App Completeness
We discovered one or more bugs in your app. Specifically, we noticed the app boots into a black screen and doesn’t boot up further. Please review the details below and complete the next steps.
Review device details:
" A quick Google lead me to this issue as IOS 16.4 is just one week ago rolled out to my Iphone I guess we have a MAUI bug here? or ??
Note I can`t reproduce this on my side... (the app works fine)
Well.. the issue is still hapenning...
Attached a video evidence.
If the image resource placed in the icon property does not exists the app will start in a black screen.
Same issue here. Updated Mac and Xcode so the emulators are now running 16.4. Boots into a black screen when there were no issues before. Doesn’t run past the splash screen on a physical iPhone at all. Looking like this is a MAUI problem.
I just updated Visual Studio 2022 Enterprise Edition to 17.5.4 , I got now new emulators and now the app also boots to a black screen in the emulator ( where it did not do that before)
To make it even more 'fun' My physical Iphone an iPhone SE with IOS 16.4.1 now gives a constant 'Network error' so i can`t deploy to my physical Iphone anymore at all ( and yes i rebooted the phone and my IDE and my laptop several times now).
Then I thought lets test the app on Android ( it worked fine there and is even already in this version deployed to my consumers by Google in the Play Store) and there it still just works fine on the Physical device a Google Pixel 6 with Android 13 and with the emulators that were also updated by this install to newer versions and SDK 33R2
I was just working through the tutorial, it also gives a black screen upon startup on iOS 16.2. When I remove the icons, the app starts as expected (without icons), so my guess it has to be something with the icons like @mcpbcs mentions . Perhaps related: SO.
EDIT: Somehow it is working again after a few tries.
Could you share the specific XCode version?
Could you share the specific XCode version?
14.3
Not sure if this will help anyone, for me the following setting had snuck into the plist:
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
</dict>
This then causes my app to black screen.
I get a slightly different scenario when using VS 2022 on Mac. I get no screen at all and flow goes straight to my main page. I have tested this on the default startup templates. It works on Android but not iOS or MacCatalyst. This only started to happen on 16.4. I also checked the Plist's for both but don't have the settings chrispem spotted.
MacOs Ventura 13.2.1 Xcode 14.2 (14C18)
I would like to mention, that the splash screen doesn't work either. The .NET text appears when my logo should appear in my iPad.
In the simulator works corrrectly the splash screen.
@jsuarezruiz : Any update on this issue ?
I'm experiencing an issue where a Maui app is displaying a black screen on an iPhone running iPhoneOS 16.4 while using Xcode 14.3 and Simulator OS 16.4. What are some troubleshooting steps that I can follow to try and resolve this issue?
There is definitely a bug here. If you have icons on bottom tabs, iOS just displays a completely blank black screen. Take the icons out and it works properly.
OK, just read another thread and it looks like (for me anyway) that you cannot use an svg image on the tab bar. You need to use the png extension on it (even if it is an svg).
I have attempted to resolve the issue by creating a new project and running it, but the black screen still appears (even without the bottom tab bar). I have provided a video and the source code for reference. It is important to note that the configuration being used is as follows: Device OS : 16.4, Xcode : 14.3, Visual Studio : Visual Studio Community 2022 for Mac - Version 17.5.4 (build 8).
Code : MAUISplash.zip Video :
Having the same thing happening on Windows desktop (net7.0-windows10.0.19041.0). What other info do you folks need to assist w/ this issue?
Same issue with Android Pixel 5 emulator... black screen at startup. I notice the iPhone emulators are doing the same with the default main page project. Works as expected on my physical device, which is iPhone 14 Pro.
I have the same issue with my new MAUI app. Even the plain vanilla template project would just show a black splash screen instead of the .NET purple screen. I'm having iOS 16.4 on both simulator and device and latest VS Mac versions.
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on iOS platform with sample project. MAUISplash.zip
Can confirm same is true for 17.6.4 on a brand new Mac Studio with latest Xcode, using Simulator.
EDIT: Appears to be a Simulator issue, a real iPhone works fine.
I'm having the same issue until last week. It works since then on one project - other projects still facing the same problem, so it might be a project-level-configuration thing. I don't know what I've changed to archieve this.
having the same issue only on iOS platform in single project maui app
having the same issue only on iOS platform in single project maui app
I endorse this message of a fellow Damian. 👍
btw, mine still happens on UWP/WinUI and Android using .Net 7
Me esta ocurriendo el mismo problema en macbook xcode version 14.3.1
Having the same issue
Same...
On iPhone13 simulator: OK. On iPhone14 simulator: black splashscreen is shown.
Splash screen is a 512x512 svg image.
I'm having this issue also with the iPhone 14 simulator, I tried the iPhone SE (3rd generation) simulator and it works.
Since this was occurring on Windows and Android, should I create a separate issue or should this issue be tagged to include them?
Happens for me as well, brand new install on a brand new Mac. Having the same issue only on iOS platform maui app running on iPhone 14 simulator. Works on Windows and Android but black screen on iOS after the splash screen.
Happens for me testing on iPhone, 13.1.1. Resolution for me was move the image out of xAssets and into resources
Happens for me testing on iPhone, 13.1.1. Resolution for me was move the image out of xAssets and into resources
Didn't work for me
Doesn't work on Simulator, doesn't work on Device
https://github.com/dotnet/maui/assets/27841167/cb29d4b8-f2e3-4612-b472-a54aa04fac90
Same issue on Xamarin Forms too... Works for iOS 14.4 , iOS 15.0, but ### not in iOS 16.4 https://github.com/xamarin/Xamarin.Forms/issues/15784
Please see post from joseepa (https://stackoverflow.com/questions/74742851/net-maui-tabbar-und-ios-causes-black-appscreen-at-start),
make sure you either remove the icon extension or specify .png (not .svg)
In my case, my icons were set as .svg, so setting them to .png fixed it. Strangely enough having .svg worked fine on Windows and Android but caused the black screen on iOS)
<Tab Title="Page1" Icon=dotnet_bot"> <-- this works
<Tab Title="Page1" Icon=dotnet_bot.png"> <-- this works
<Tab Title="Page1" Icon=dotnet_bot.svg"> <-- this causes black screen
Related: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1641233/
Hot Restart does not support scene delegates.
Thanks folks of r all the feedback. I am opening an issue on the macios repo so they can have a closer look: https://github.com/xamarin/xamarin-macios/issues/18777
If anyone has any additional information that I have missed, please add a comment there.
Closing the issue here as this seems to be related to the iOS SDK or something outside the .NET MAUI workflow: https://github.com/xamarin/xamarin-macios/issues/18777
This issue has been moved from a ticket on Developer Community.
When I run my maui app in my iPad a black screen is shown.
here the logs.
Pleaes help!
Original Comments
Jorge Arturo Aviles Nuñez on 4/2/2023, 01:56 AM:
(private comment, text removed)
Jorge Arturo Aviles Nuñez on 4/2/2023, 02:49 PM:
(private comment, text removed)
Feedback Bot on 4/2/2023, 08:26 PM:
(private comment, text removed)
Original Solutions
(no solutions)