App Startup with Debugger in Xcode 26 is slow

My app start up has became horrid. It takes 1 minute to open SQLlite database for my rust core. Impossible to work... I have Address Sanitizer, Thread Perf Checker and Thread Sanitizer disabled...

While I appreciate the movement in the right direction, this still represents a substantial regression from the prior baseline, ~1s in Xcode 16.

Hi LWK, I would appreciate it if you could run an experiment to help us understand where the last bits of performance regression are.

Open ~/.lldbinit and add this line:

settings set target.experimental.swift-tasks-plugin-enabled false

It might be best to do this while Xcode is closed, so that we can be sure the setting is read correctly. (You can confirm the setting worked by looking at the thread navigator while stopped in some async function, if you have any in the code, you should no longer see any threads called "Tasks").

With this setting, do you still experience a slow launch?

(please remember to remove that setting, as keeping it on will make stepping through async functions stop working)

If you could also open a terminal, run sample lldb-rpc-server 60 --wait -file sample.txt, and then immediately launch your application, this would be very helpful as well. Please attach the sample.txt file to a bug report.

I tried to disable swift-tasks-plugin-enabled as you described, but that barely had noticeable effect (<1s difference). With the debugger attached (and iPhone connected with USB) our app becomes responsive after about 6-7 seconds from start, while this time decreases to less than 1s if I turn off "Debug executable" option in scheme. I collected lldb-rpc-server sample as you described and added it to FB21378487. Hope it would be helpful!

App Startup with Debugger in Xcode 26 is slow
 
 
Q