Slow launch of app on iOS Simulator 26.4

Each time I launch a Debug version of the app on iOS Simulator, I see the Launch Screen presented and then about a 30-second delay before the app is responsive and debug output appears in the console panel.

Filed FB22345091

Same here.

Updated xcode & simulator yesterday and out of sudden ios apps when started show a white screen for seconds before the main application screen (i.e. a splashscreen) appears.

Added print() to trace but it looks the delay happens not in user code. Looks like loading libs during the startup process takes ages before user code starts running.

Did some more testing.

The white screen/delay only happens when the app is provisioned for debugging and started for the first time in the simulator.

When i terminate the app and start it on the simulator again (w/o debugging from xcode) all went smooth. No white screen, no delay.

So it looks like there is some kind of debugging/first run overhead that causes the delay aka white screen (system launch screen) to be visible for that long time.

I'd like you to try something — go into your scheme, and uncheck Debug Executable from the Run tab. When you click Run, Xcode will run your app with going through the process to attach LLDB. Does the launch performance after this look more like you're expecting?

If so, we'd really appreciate getting diagnostics so we can look into the root cause of this slow down. Add the following to your ~/.lldbinit file, and the restart Xcode to ensure this is enabled:

log enable gdb-remote packets --timestamp -f /tmp/log_packets.txt

Before you launch your app, run the following in Terminal:

sample lldb-rpc-server 60 --wait -file /tmp/sample.txt

Attach both of those files that those commands placed in /tmp on your bug report, and let me know here when that's done. I also suggest removing the log line from ~/.lldbinit so it's not always logging debugger packets.

@Code4Food, it'd be helpful if you could run the same tests and collect the same data, and attach them to your own bug report. Please post the FB number here so we can locate it.

— Ed Ford,  DTS Engineer

I'm seeing it take 1-5 minutes on launch on Xcode 26.4 (most often around 2m). As suggested, when turning off "debug executable," it launches as expected. FB22353872. I've added the requested traces. This also happens when running unit tests via Cmd-U (which is also configured with "debug executable").

Also reproducible here, without debugging start is a few seconds, with it takes over a minute. FB22365004

100% repro here. Xcode 26.4 is unusably slow and I am having to downgrade. FB22366086

Slow launch of app on iOS Simulator 26.4
 
 
Q