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.

Same issue here.. please someone help me.

I am also experiencing this issue. When I proceed installing 14.5. iOS Simulators, the Xcode simply hangs when Xcode is building the beta app

@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.

having the same issue, nothing worked! I restarted the machine, reinstalled Xcode, clean build and derived data. basically nothing is working!!!

Same...XCode 13 is really a disaster. So. Many. Problems. Can't believe it was released.

Same here... just upgraded to Xcode 13 and it's stuck on this, 8714/8802 files. Is there really no solution?

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. :)

Xcode 13: "Preparing Editor Functionality" hang?
 
 
Q