I am trying to delete somewhere around 400 objects in a single go with HKHealthStore deleteObjects and I'm getting this peculiar error.
Error Domain=com.apple.healthkit Code=100 "Transaction failure."
Here is the code:
self.healthKitStore.deleteObjects(deleteQ, withCompletion: { (success, error) -> Void in
})
Any ideas? Thanks!
有时,如果您在保存或删除样本之前不是requestAuthorizationToShareTypes
,HealthKit会为您提供此错误。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.