I get the following message in the console when I run consecutive healthkit queries on iOS beta 2.
The error does not seem to happen on iOS 11.4.
Has anyone else seen this and/or have a solution. The application does not crash and no errors are logged.
[query] <HKSampleQuery:0x280656760 deactivated>: Error reactivating query: Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}
This error also appears in the console.
[query] <HKStatisticsCollectionQuery:0x280c401a0 deactivated>: Error reactivating query: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.healthd.server was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo={NSDebugDescription=The connection to service named com.apple.healthd.server was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.}