简体   繁体   English

HKHealthStore deleteObjects报告错误域= com.apple.healthkit代码= 100“事务失败。”

[英]HKHealthStore deleteObjects reporting Error Domain=com.apple.healthkit Code=100 “Transaction failure.”

I am trying to delete somewhere around 400 objects in a single go with HKHealthStore deleteObjects and I'm getting this peculiar error. 我试图用HKHealthStore deleteObjects一次删除大约400个对象的某个地方,我得到了这个特殊的错误。

Error Domain=com.apple.healthkit Code=100 "Transaction failure." 错误域= com.apple.healthkit代码= 100“事务失败。”

Here is the code: 这是代码:

self.healthKitStore.deleteObjects(deleteQ, withCompletion: { (success, error) -> Void in
})

Any ideas? 有任何想法吗? Thanks! 谢谢!

有时,如果您在保存或删除样本之前不是requestAuthorizationToShareTypes ,HealthKit会为您提供此错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误Domain = com.apple.healthkit代码= 5 - Error Domain=com.apple.healthkit Code=5 HealthKit中的错误:错误Domain = com.apple.healthkit代码= 100“无法打开数据库” UserInfo = {NSLocalizedDescription =无法打开数据库} - Error in HealthKit: Error Domain=com.apple.healthkit Code=100 “Failed to open database” UserInfo= {NSLocalizedDescription=Failed to open database} Apple Health Kit错误Domain = com.apple.healthkit代码= 5“未确定授权” - Apple Health Kit Error Domain=com.apple.healthkit Code=5 “Authorization not determined” 错误Domain = com.apple.healthkit = 3“锻炼会话不是当前的”错误? - Error Domain=com.apple.healthkit = 3 “Workout Session is Not Current” Error? Apple Watch HealthKit-无法识别的选择器HKHealthStore startWorkoutSession:完成: - Apple watch HealthKit - unrecognized selector HKHealthStore startWorkoutSession:completion: 出现错误:缺少com.apple.developer.healthkit元素 - Getting Error: Missing com.apple.developer.healthkit entilement com.apple.developer.healthkit.access警告 - com.apple.developer.healthkit.access warning XCode 6 Beta 4错误 - “运行时遇到错误(Domain = com.apple.CoreSimulator.SimError,Code = 146)” - XCode 6 Beta 4 error - “An error was encountered while running (Domain = com.apple.CoreSimulator.SimError, Code = 146)” App Store 连接操作错误:ITMS-90164 [] for key com.apple.developer.healthkit.access - App Store Connect Operation Error: ITMS-90164 [] for key com.apple.developer.healthkit.access 初始化CoreML模型时崩溃:Error Domain = com.apple.CoreML Code = 0“声明网络时出错。” - Crash when initializing CoreML model: Error Domain=com.apple.CoreML Code=0 “Error in declaring network.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM