High battery drain using Xcode 13

I have two Mac Book Pro 16'' 2019. On both I see a very high battery drain using Xcode 13 while using the simulator. Even when the app is not running only the simulator is launched in the background the MacBook gets very hot and the battery drains empty very fast. For the beta this was ok. But with the RC I expected that this was only a temporary problem. Does some else has this problem also?

Same problem with 2019 MBP running Monterey and Xcode 13.2.2.

I have used Xcode for over 10 years, and I have never ever seen anything like this. My computer actually died while being plugged in because battery got drained and power cable was not feeding enough power?! WTF?

Activity Monitors Battery Tab reports Xcodes service XCBBuildService being responsible for the majority of the drain.

I’m using Swift Composable Architecture (TCA) resulting in many many local SPM Packages.

This is the only change I’ve done recently, which went from everything OK (using Xcode without TCA code base) to battery draining in a matter or minutes it feels like.

It is not only that battery drains fast, it is also that computer is CRAZY slow. CPU usage for Xcode is 240% or something (whatever that means, how can it be larger than 100%?)z

I will try Xcode 13.3 beta and see if there are any improvements…

High battery drain using Xcode 13
 
 
Q