HKLiveWorkoutBuilder begincollection freezes in sim

When calling beginCollection on HKLiveWorkoutBuilder the function never completes and gets stuck. (On the second workout session, the first session works flawlessly) To reproduce:

  1. Run the MirroringWorkoutsSample on WatchOS https://developer.apple.com/documentation/healthkit/building-a-multidevice-workout-app.
  2. Start the workout and then end the workouts it should work perfectly fine the first time.
  3. Start the workout and end again, and you should see the problem, the workout doesn’t end.
HKLiveWorkoutBuilder begincollection freezes in sim
 
 
Q