使用watchOS 3时出现CloudKit错误(CloudKit error using watchOS 3)
我相信我已经设置好一切,并且一切都适用于iOS模拟器中的
CloudKit
,但我无法让CloudKit
在Watch Simulator中工作:“无法发送有效的签名”有谁知道为什么会这样?
我知道
CloudKit
适用于每个Apple“iCloud交互的watchOS 3。从watchOS 3开始,WatchKit
扩展可以直接与CloudKit
和其他iCloud技术进行通信。”我已经设置了> iCloud,然后使用您的Apple ID登录
在iOS模拟器上每次输入链接描述在Watch Extension中,我在这里输入链接描述时使用
CKContainer(identifier:"iCloud.com.xx.xx")
调用CloudKit我仔细检查了Apple的文档,以确保我没有错过任何东西:
在此输入链接描述我正在Watch上访问同一个
CloudKit
容器
iOS,因此CloudKit
数据的可访问性没有任何问题- 具有容器标识符的CloudKit功能在Watch Target中正确设置
I believe I have everything set up right, and everything works for
CloudKit
in the iOS Simulator, but I can't getCloudKit
to work in the Watch Simulator: "Couldn't send a valid signature"Does anyone know why this would be?
I know
CloudKit
works in watchOS 3 per Apple "iCloud interactions. Starting with watchOS 3, theWatchKit
extension can communicate directly withCloudKit
and other iCloud technologies."I already did Settings > iCloud and then log in using your Apple ID
on the iOS simulator per enter link description hereIn the Watch Extension, I'm calling CloudKit using
CKContainer(identifier:"iCloud.com.xx.xx")
per enter link description hereI double-checked Apple's doc to make sure I didn't miss something:
enter link description hereI'm accessing the same
CloudKit
container on the Watch that I am on
iOS, so nothing is wrong with accessibility to the data inCloudKit
- The CloudKit capability with the container identifier is set correctly in the Watch Target
原文:https://stackoverflow.com/questions/41253820