iCloud Time out. (using iCloud + Core Data + Magical Record

别等时光非礼了梦想. 提交于 2019-12-05 03:58:15

Yes, more times than I care to recall.

What this means is that Core Data's internals failed to connect to iCloud in some obscure and undocumented way. There's no recovery path or fix-- you just get to try again later. Those errors don't come from Magical Record or your code, they're an internal Core Data / iCloud failure.

Here's the thing: This does not mean you did something wrong. And the corollary of that is, there is nothing you can do to fix it. When using iCloud with Core Data, this just happens sometimes, and you just have to deal with it. File a bug and pray to whatever god or gods you believe in that they fix it some day. Core Data with iCloud is just fundamentally flaky and you're encountering one of the most maddening parts.

Sometimes it helps to just try the call again. But Magical Record returns void, so detecting failure in code is not as simple as you might hope.

During testing, it might help to delete all of your app's data from iCloud, to start clean. You do this in iOS at Settings --> iCloud --> Storage & Backup --> Manage Storage --> (your app name here) --> Edit --> Delete All. Also be sure to check out http://developer.icloud.com/ to see what's present in the cloud. Also, when you're having problems, be sure to delete your app from the device so that no old data is sitting around.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!