Xcode 12 is slow when launching apps (even sample projects)

Running a project from Xcode 12 seems to be very slow during launch. Even the example projects from Apple.

Basically it feels as if the app is stuck on the launch screen?

However, if I unplug from my Mac and just launch via tapping on the App icon, it's super fast.

Anyone is having the same issue?
Answered by tundaware in 616750022
This isn't Xcode 12 specific.

Deleting the contents of ~/Library/Developer/Xcode/iOS DeviceSupport seems to be the fix (worked for me just now):
https://developer.apple.com/forums/thread/123068?answerId=420683022#420683022
If any of the solutions provided by other answers seem to be working, you can always try restarting your devices, it might help... Restarting your device will reboot your software and might get the speed of Xcode back to normal...
Deleting the contents of iOS Device support folder did not work for me, although it freed almost 10GB+ of precious storage.

What did work for me, is unticking the "debug executable" option in Scheme settings. I greatly thank the person who instructed to do so, he saved me a lot of time.
j'ai le même problème
Go to Window/Devices and Simulators/uncheck Connect Via Network
Hi i have found there is a Malware in xcode projects that is XCSSET that causing many issue to mac and xcode project you can see a question for this issue solution check this : https://developer.apple.com/forums/thread/651012
Same issue here.
Deleting the contents of ~/Library/Developer/Xcode/iOS DeviceSupport (also logs and caches) didn't solve the problem for me.
With this configuration:
  • Big Sur 11.3

  • Xcode 14.5

  • Simulator 14.5

my app start takes more than 30 seconds when running from xcode. Normal start of installed app takes 2 seconds.
Xcode says "launching app", "attaching to app", and then "running app", at the running app stage I get a ~30 second pause. debugserver at 100% activity at that time.

Unticking "Debug executable" makes start instantaneous but makes debugging impossible, it's not a solution.
On the real device (running iOS 14.4) start with attached debugger takes around 6 seconds.
Since version 12.5, Xcode is extremely slow to do anything, build, code completion, run unit tests.

Deleting the contents of ~/Library/Developer/Xcode/iOS DeviceSupport didn't fix the problem.
defaults delete com.apple.dt.Xcode
rm -rf $HOME/Library/Application\ Support/Developer/Shared/Xcode
rm -rf $HOME/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState
rm -rf $HOME/Library/Preferences/com.apple.dt.Xcode.*
@_whatthedeuce It doesn't help unfortunately. Still have trouble with attaching debugger and slow running time.
Xcode 12 is slow when launching apps (even sample projects)
 
 
Q