When trying to submit an app through Xcode or Application loader, with the "healthkit" entitlement enabled and a deployment target of 7.0, the app store gives the following error:
ERROR ITMS-9000: "This bundle is invalid. The key UIRequiredDeviceCapabilities contains value 'healthkit' which is incompatible with the MinimumOSVersion value of '7.0'."
The confusing thing is, both Strava and UP have healthkit enabled and iOS7 deployment targets. So it is technically possible to submit an app with these requirements.
Can someone please …
我正在尝试从HealthKit中提取步骤数据.
我想创建按小时分组的步骤数据摘要.目前,我可以提取所有所提供的时间范围之间的数据的样本NSPredicate用HKSampleQuery.我还可以得到日期范围与之间的步数之和HKStatisticsQuery.
我要问的是,是否有办法按小时对样本或统计数据进行分组.在SQL中我会写这样的东西:
SELECT HOUR(date), SUM(steps) FROM healthkit WHERE date BETWEEN 'blah' AND 'blah' GROUP BY 1;
我是否真的需要24小时31次查询HKStatistics来编写按小时分组的最后一个步骤数据?因为这似乎效率很低,特别是如何resultsHandler实施.