Xcode 14 Simulator spamming diagnosticd

When I start a simulator from Xcode 14, I immediately get two diagnosticd processes starting the fans to warm the house. So much (>70% CPU) that the sim is essentially unusable.

Looking in Console it looks like apsd is responsible, the culprit seems to be that the certificate store is missing/unsafe.

I'm on a 2018 MacBook Pro with touch ID but obviously not Apple Sillicon.

I "solved" this by pausing apsd:

killall -STOP apsd

See log excerpt below.

standaard	12:28:19.257217+0200	apsd	copyTokenForDomain sandbox.push.apple.com (null)
standaard	12:28:19.257874+0200	apsd	copyTokenForDomain sandbox.push.apple.com (null)
standaard	12:28:19.258404+0200	apsd	<APSCourier 0x7fcdfbc04960 development> Sending presence message for deviceToken with token NO on interface: NonCellular
standaard	12:28:19.258511+0200	apsd	Could not get certificate from simulator with error Error Domain=SimIdentityErrorDomain Code=100 "Connection invalid" UserInfo={NSLocalizedDescription=Connection invalid}! Aborting...
standaard	12:28:19.278525+0200	apsd	nw_socket_handle_socket_event [C333.1.1:3] Socket received READ_CLOSE event
standaard	12:28:19.278621+0200	apsd	Connection 333: final read 0:0, complete[Y], final[N]
standaard	12:28:19.278685+0200	apsd	Connection 333: read-side closed
fout	12:28:19.278722+0200	apsd	Connection 333: missing error, so heuristics synthesized error(1:53)

Same problem here with Beta 5 too.

Same problem with Xcode Beta 5 on Macbook Pro 13-inch, M1, 2020 when preview SwiftUI.

Same problem here. Your solution didn't work for me though. :-(

This solution might help:

https://blog.nihongo-app.com/stop-xcode-14-beta-from-pegging-cpu/

Xcode 14 Simulator spamming diagnosticd
 
 
Q