我在没有经过身份验证的 iCloud 帐户的情况下测试我的应用程序,但在为设备订阅通知时出现此错误:
subscription error<CKError 0x1700581e0: "Not Authenticated" (9/1002); "This request requires an authenticated account"; Retry after 3.0 seconds>
没关系,但我的问题是如何在尝试运行 CKSubscription 代码之前检查设备是否登录到 iCloud?
非常感谢您的帮助。
最佳答案
我最终在这里在谷歌上搜索“cloudkit This request requires an authenticated account”。我的问题是我没有在模拟器内登录 iCloud。我曾假设我会自动在我的开发 Apple ID 下运行...
关于ios - cloudKit: CKSubscription 错误 "This request requires an authenticated account"",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27315155/