Xcode 13: "Preparing Editor Functionality" hang?

When I compile my project in Xcode 13, I often see this in the status bar:

Preparing Editor Functionality | 114/162 files

The multi-progress bubble next to it shows 2⃝ concurrent processes, the preparing… and

Indexing | Paused

When I run, the app executes, but now there are three tasks, preparing, not-indexing, and running.

So I get to build and run, but I'm disturbed to see this apparently-hung progress item. Should I worry?

Try restarting your simulator.

I've seen the same problem a few times and was able to fix it by restarting the simulator. Although the problem may come back soon, every time I restart the simulator it works for a while. No idea why it happens.

Next steps helps to me:

  1. Remove all simulators in XCode;
  2. Go to Library/Developer/CoreSimulator/Devices - remove all folders and files;
  3. Restart Mac.

That's it.

Xcode 13: "Preparing Editor Functionality" hang?
 
 
Q