iOS black screen - ios

I have a weird problem ie the app sometimes becomes black and the side menu remains visible and the flow is random and it is highly intermittent.
As crash is not happening not able to get the crash logs from the phone
The chances of happening in the simulator are very very less.
Once it happened in the simulator but couldnt figure out the correct file name(i was using view debug hierarchy to get the simulator inside xcode so that the layout can be found)
I cannot share the code for some reasons
Can anyone help me in identifying the root cause of the issue?

Related

Expo Go works fine on iPhone8 Sim. but stuck at splash screen on other simulators or my real iPhone 11

I simply cannot figure out what’s going on here—My app works great in the simulator when it is set to iPhone 8, but if I change to 11, or try to open it in the expo app on my real iPhone, it hangs at the splash screen.
I am loading a few images and fonts with the splash screen, but it works perfectly well in the simulator when it’s set to iPhone 8, and I have no idea why it doesn’t just work equally well on any device size.
Does anyone have any ideas why the behavior would be different?
Edit: update on my findings. I have narrowed the issue down to a check for isClientReady which is a Boolean I create during the Splash Screen loading to check for an existing session and if so, connect to the Stream chat service’s client. When I remove this, then the Splash screen continues to load for the other device sizes, but then it sets up a race condition where the app loads before the user is connected to Stream and I get an error. I may be able to circumvent this by throwing up a spinner wheel once past the loading screen to await the Stream client check, but I wanted to avoid multiple loading states when the app starts and hide it behind the splash screen.
Weirdly, this is not and has never been a problem when using the iPhone 8 simulator, it works perfectly. It seems to be a problem with all other phone sizes, though, and my real iPhone 11.
So the question still remains—does anyone know why the behavior would vary between two different types of simulator? I’m stumped.

My application shows me black screen on real device but runs perfectly on simulator

I'm coding an application with SwiftUI and Firebase.
My application works very well on simulators, but as soon as I put it on a real device (like the iPhone X that I own) the application shows me a black screen.
Additionally when I put the application on my phone, 2 errors in the code appear. This does not prevent the application from building and launching, but it always shows a black screen.
[]
[]
Here is the proof that there are no bugs with simulators:
Does anyone have an idea what is going on and how to solve this problem? Thanks a lot for your help.
The compiler is warning that in two places the code is using a String that could contain a nil i.e. be undefined for whatever reason. If it is a nil would that cause the Firestore query to lock-up? Check what is with the debugger.
In terms of the simulator vs real device - dirty install state from previous testing might be hiding problem - do a full reset on the simulator to eliminate.

Xcode Simulator showing black screen after app launces

Today, while working on an app, I went to run the simulator and instead of seeing the normal progression, I see only a blank grey screen. I never see the usual apple loading screen, the home screen, or my app launch. However, I know that the app is launching because print statements in my ViewDidLoad all print. Additionally, if I click in the area where buttons are, they run their functions.
I know that the problem is not a bug in the app, because I went back and ran old apps I have developed in the past and they also show only the grey screen.
I tried resetting content and settings on the simulator, but that did not help. I also played around with the scale of the simulator, but that didn't help either. I tried on the iPhone 5, 6, 6 plus, and others and they all have the same issue.
Anyone have any ideas?
If you have an external monitor, try unplugging it, restarting the simulator, and plugging the monitor back in. Worked for me.
Not sure what happened, but restarting my computer seems to have solved the issue.

iOS 8 statusbar rotating twice when rotating phone

So I have seen this for quite a while now but I still wonder why this happens. When your app is in landscape mode and you rotate your phone or simulator on to the other landscape side it appears as if the status bar is clearly rotating twice. If you don't see this at first try activating slow animatons (⌘T on the simulator). I can see it happening on my iPhone as well.
Does anyone know why this is happening?
That's nothing but a common iOS Simulator lag. It happens just because of the slow animation mode and you could even send a Bug Report to Apple, but that's nothing but a Simulator lag. Don't worry: This issue will never happen in a recent iOS device. Happy programming!
EDIT: Apparently you want deep details. Ok. If your app's rotation animations are faster than iOS standard animations, this should happen because the system probably notices that the app's rotation is not near ready and returns for keeping up the pace. For deep details and possibilities to change these details on the Info.plist file, please look on the iOS Library.
Best regards,

App fails to launch and results in a black screen on device with home button unresponsive

Im having problems with Xcode timing out to installing the app on my device. The problems persists even if using different devices. Usually 4/5 tries will result in a black screen.
Xcode says successful and the app opens up on the device, but the screen is completely black and the device stops responding.. only a hard reset works.. the home button isn't responsive.
You can however hear that someone is calling you, but you cannot answer the call.
I have no idea of whats wrong, because it builds completely fine.. Any idea on what might be wrong here?
The error Im receiving is:
error: failed to launch '-- timed out waiting for app to launch
Update:
Someome mentioned to me that it might be a faulty cable, but I get the same black screen when downloading the uploaded app from hockey app.
Often this is the result of building the app in debug with an ad-hoc or release configuration. There was also a bug early in Xcode 5 where it would hang as well, I think this is fixed in the most recent update.

Resources