Hi
I get an error when doing insertRouteData of HKWorkoutRouteBuilder 😢.
Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.healthd.server" UserInfo={NSDebugDescription=connection to service named com.apple.healthd.server}
I would have allowed write permission of "Workout Route".
And I tried with the following code.
let builder = HKWorkoutRouteBuilder(healthStore:healthStore, device: nil)
let routeData:[CLLocation] = ...
builder.insertRouteData(routeData) { (success, error) in
if let e = error { print(e) }
}iOS: iOS 11 beta 3
WatchOS: watchOS 4 beta 3
What should I do to solve this error?
Thank you.