Xcode 13 simulator high CPU Spotlight

I'm on a MacBook Air M1 with Monterey and XCode 13 beta. On the first night my MBA ran out of battery within three hours. I check cpu usage, and it was Spotlight. Left it running for hours and hours, but Spotlight did not complete it's tasks. Then I noticed in an Activity Monitor sample output that it seemed to have a relation to the Xcode simulator. I quit that, and the cpu utilisation went down.

I can reproduce it. Nothing special, an empty iOS App in an iPhone 12 Pro or mini simulator will cause busy cpu cores with Spotlight.

I recommend not leaving the simulator running when on battery if you have the same issue 😉

Anyone else seeing Spotlight taking up a lot of CPU resources when the Xcode simulator is running?

My Intel MBA seems to show the same symptoms. The symptoms may start a couple of minutes after the simulator is started

Same here. Had to kill the spotlight process

Same here, but on a Mac with Intel CPU

I pretty much had the same issue. It seems that Xcode 13's simulators do tend to take up a good amount of CPU usage, and my MacBook Air M1 gets really warm while working on Xcode 13. I had the Spotlight issue while I was running my Xcode 13 on an external SSD, but once I transferred it to my internal, that issue did fade away.

I hope Xcode 13's next beta would improve its performance.

My workaround for now, to avoid draining the battery like crazy, is to just kill this spotlight process on Activity Monitor.

Same here, on Intel using Xcode 13 beta 2 with iPhone 12 simulator. Killing the Spotlight processes works for a while until it comes back again (doing a drag down search brings it back). Hopefully beta 3 fixes it.

I'm on an M1 Air as well (low end -- 7 cores, 8GB). But launching Xcode Beta -- without any simulator running or any projects open -- is enough to get Spotlight churning continuously. I changed the Spotlight prefs to uncheck Developer, but that was no help. Did not try unchecking everything.

I have completely same problem. Did someone solve it?

Yes, I'm seeing this issue too. I thought it was a macOS Monterey beta 3 issue, but now I'm seeing Spotlight at high CPU when running the simulator in Xcode 13 on Big Sur 11.4.

Confirmed here, I'm seeing exactly the same thing. M1 MBP, Xcode 13b3 on Big Sur.

Still seeing it on M1 Air, Xcode 13b5, Monterey 12b6.

Xcode just sitting there -- not running any apps -- is consuming about 240% CPU, Spotlight about 110% CPU.

Running then stopping an app launches a second Spotlight process, with similar CPU.

Quitting Xcode but leaving the simulator on the home screen -- not running an app -- leaves a Spotlight process consuming ~170% CPU.

Nuts.

(Quitting the simulator as well brings Spotlight back to 0.0% and drops the cpu back to negligible levels.)

XCode 13 running on an iMac Pro with Intel Xeon CPU has the same issue. High Spotlight CPU usage and also multiple diagnosticd processes with high CPU also.

I can confirm that I'm still experiencing high CPU usage coming from the Spotlight process launched by the simulator. I'm on M1, Xcode 13 App Store release (13A233), macOS 11.6

i'm on macos 12 beta 7 and xcode 13 from store and have same problem Xcode 13 simulator high CPU Spotlight

Hi all,

Seems like I was able to resolve the issue by switching off Siri & Search in Simulator Settings. Also I went through all of the installed apps and disabled everything there as well.

25
Xcode 13 simulator high CPU Spotlight
 
 
Q