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?

  • I am also experiencing this after updating from Xcode 12 to 13.

  • I'm having the same issue.

  • Same issue here. Tried running it overnight, did not help.

Replies

@all What messages do you get for the project in Issues Navigator (left panel) ?

Have you request to update to new settings ? If so, do it and test.

  • Claude31 - no issues shown. But this is likely because indexing isn't complete (and never will complete) so errors aren't showing up.

Add a Comment

I somehow found a way around this. I closed any open projects, I created a new project (iOS App), got that project to build, then the issue kind of sorted itself out the next time I opened the project that was giving me problems. I don't know if this will work for you, but something to try anyway.

Same problem here, and still an issue in Xcode 13.2 beta 2.

Similar problem here, but the build never finishes.

Same problem here, app build is stuck at "preparing editor functionality" for 40 minutes then suddenly it's done.

For me, I've found this happens on projects that share a module and it helps to only be working with one at a time.

In saying that though, when this message was displaying it looked like it the build had hung, but in fact, the build had failed with error messages ages before - it's just I didn't realise because it also had the "preparind editor" message so I thought the build was still running. Check your build process is actually still running, fix any errors if any, and hit build again (even if this message is still displayed).

If you have a mistake on your code, This error may happen.

I've faced the same, when I forget to pass a param, which is used inside the function. This error occurs. I've tried clear derived data, restart the mac, pod de integrate/reinstall. But still error exists.

Once I checked my recently added codes one by one, I've seen the missed param. But We expect xCode will throw an error like Cannot find '' in scope . Instead of showing the error, xCode taking too much of time and struggling to build.

Once added the missed params on that function, xCode build successfully.

Hope It'll help. :)

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.