当我试图删除我以前保存在HealthKit中的一些记录时,如果我使用-deleteObjectsOfType:predicate:withCompletion:会出现错误。错误说:ErrorDomain=NSCocoaErrorDomainCode=4097"connectiontoservicenamedcom.apple.healthd.server"UserInfo={NSDebugDescription=connectiontoservicenamedcom.apple.healthd.server}但是如果我首先使用相同的类型和谓词查询记录,然后使用-deleteObject