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}

查看:124
本文介绍了HealthKit中的错误:错误Domain = com.apple.healthkit代码= 100“无法打开数据库" UserInfo = {NSLocalizedDescription =无法打开数据库}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用HealthKit API进行授权时,某些设备上出现错误.对[HKHealthStore requestAuthorizationToShareTypes :::]的调用始终失败,并出现以下错误,并且系统生成的允许访问Health App"模式永远不会显示:

We're getting an error on a certain few devices when trying to authorize with the HealthKit API. The call to [HKHealthStore requestAuthorizationToShareTypes:::] fails consistently with the following error and the system-generated "Allow access to Health App" modal never gets presented:

错误Domain = com.apple.healthkit代码= 100无法打开数据库" UserInfo = {NSLocalizedDescription =无法打开数据库}

Error Domain=com.apple.healthkit Code=100 "Failed to open database" UserInfo= {NSLocalizedDescription=Failed to open database}

即使强制退出应用程序并重新启动操作系统,我们的设备也能够始终如一地重现此问题.手机似乎无法从任何第三方应用程序连接到HealthKit,因此这似乎是HealthKit中的错误,而不是我们这边的错误.这似乎只发生在某些设备上,但这些设备似乎没有什么特别之处(所有运行iOS 9、9.0.1、9.0.2或9.1的iPhone 4s及更高版本)

We have a device that is able to reproduce this consistently, even after force quitting apps and restarting the OS. The phone seems to be unable to connect to HealthKit from any and all 3rd-party apps so it seems like a bug in HealthKit, not on our side. This seems to happen only on certain devices, but there doesn't seem to be anything special about the devices (all iPhones 4s and higher running iOS 9, 9.0.1, 9.0.2, or 9.1)

我的问题是:有没有其他人看到此错误?如果是,您做了什么工作来解决或缓解该问题?

My question is: Has anyone else seen this error and if so what did you do to fix or mitigate the problem?

推荐答案

这是一个iOS错误,已在iOS 9.3 beta 2中修复.开发人员可以从

This was an iOS bug and has been fixed in iOS 9.3 beta 2. Developers can download the beta build from https://developer.apple.com/ios/download/ or wait until the 9.3 update is released to everyone.

这篇关于HealthKit中的错误:错误Domain = com.apple.healthkit代码= 100“无法打开数据库" UserInfo = {NSLocalizedDescription =无法打开数据库}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆