Importing data to Health.app fails
||Date Originated:||06-Jan-2017 06:32 AM|
|Product:||iOS / iOS SDK
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 Radar27Sep2016.zip 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.
"Success!" is printed to the console and all samples are saved to the health store.
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 com.apple.healthd.server was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.
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 'Radar27Sep2016.zip' were successfully uploaded.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com 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!