HKLiveWorkoutBuilderDelegate not updating activeEnergyBurned HKQuantityType in watchOS 9.6.1(20U80)

The "func workoutBuilder(_ workoutBuilder: HKLiveWorkoutBuilder, didCollectDataOf collectedTypes: Set<HKSampleType>)" function from the "HKLiveWorkoutBuilderDelegate" is not updating data from "HKQuantityType.quantityType(forIdentifier: .activeEnergyBurned)" in a workout session.

My app is using the same code as before and it stopped working since I updated my watch to the version 9.6.1(20U80). I am using Xcode 14.3.1 (14E300c). Is there any solution to address this matter?

HKLiveWorkoutBuilderDelegate not updating activeEnergyBurned HKQuantityType in watchOS 9.6.1(20U80)
 
 
Q