Importing data to fails

Number:rdar://29899913 Date Originated:06-Jan-2017 06:32 AM
Status:Duplicate/28494648 Resolved:
Product:iOS / iOS SDK Product Version:10.2
Classification:Serious bug Reproducible:Always

HKHealthStore fails to save all samples in some situations. The batch save fails with an error which has no actionable fix and the health store fails to save all data points.

Steps to Reproduce:
1. Unzip and open the project.
2. Build and run on a device (the issue does not manifest on a simulator).
3. Wait until you see the Health data access prompt and accept.
4. Wait a few seconds.

Expected Results:
"Success!" is printed to the console and all samples are saved to the health store.

Actual Results:
The following errors are printed to the console and not all samples are saved:

Short Description: Couldn’t communicate with a helper application.
Long Description: The connection to service named was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.

10.2 (14C92)

Please view attached sysdiagnose that was created while the error occurred, along with referenced Xcode project to reproduce the issue.

iPhone SE 64GB T-Mobile

'sysdiagnose_2017.01.02_11-01-02-0600.tar.gz' and '' were successfully uploaded.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!