HealthKit finishRoute not connecting workout and route.

When using the code below, I can see both a workout and a workout route within the Apple Health app on simulator, however the two are not connected.

On my iPhone 12 mini, I notice similar with workout data from the Strava app. whereas a workout recorded with the Apple Watch Fitness app, will have a workout with a related route.

// Save workout to Health store
builder.finishWorkout { theWorkout, error in
    // Finish route
    routeBuilder.finishRoute(with: theWorkout!, metadata: [:]) { workoutRoute, error in
    }
}

Anyone else have this issue?

Not really an answer, however only way to provide more detail.

Attached examples showing both the Workout and WorkoutRoute appearing in the Health app, however they are orphaned from one another.

I am experiencing a similar issue, was curious if this was ever solved?

The issue seems to happen sporadically in my case, maybe 3% of the time.

HealthKit finishRoute not connecting workout and route.
 
 
Q