删除的CloudKit记录重新出现

删除的CloudKit记录重新出现

本文介绍了删除的CloudKit记录重新出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CloudKit构建iOS应用程序。

I'm building an iOS application using CloudKit.

它应该允许用户添加,编辑和删除产品在云端。用户可以在文件夹中组织这些内容。这些文件夹只是cloudkit中的其他记录类型。用户可以使用的文件夹级别没有限制,因为任何文件夹只能将 CKReference 保存到其父文件夹中。我的应用程序中的所有CloudKit通信都发生在专用的CloudKitController类中。

It should allow a user to add, edit and delete Products in the cloud. The user can organize these in Folders. These folders are just other Record Types in cloudkit. There is no limit to the levels of folder the user can use, as any folder can just hold a CKReference to it's parent Folder. All CloudKit communication in my app happens in a dedicated CloudKitController Class

这一切都有效,但一段时间后停止工作没有明确的原因。

This all works, but stops working after a while for no clear reason.

当我测试我的应用程序时,我甚至不会使用多级别的文件夹。但是,在使用它一段时间(最多一周)后,所有已删除的记录似乎都会重新出现在CloudKit上。关于此的几点说明:

When I test my app, I don't even user folders that are multiple levels deep. However, after using it a while (up to a week), All deleted records seem to reappear on CloudKit. A couple of notes on this:


  • 当我重置我的CloudKit仪表板并重新开始时,它完美无缺。没有代码更改。

  • 显然,我正在编辑我的代码,因为应用正在开发中。但是,我通常不会编辑我的代码中要存储在CloudKit中的数据类型。当我这样做时,此问题不会随后出现问题

  • CloudKit仪表板中的更改(例如添加数据类型)不会导致此问题

  • Am不在本地存储任何记录,例如核心数据。只要我使用它们,它们就会坐在一个单身中

  • 当我转到CloudKit仪表板时,产品记录类型显示它具有例如13个实例。有时它太糟糕了,我的应用程序实际加载超过100.当我去RecordZone时我也可以看到它们,但RecordType仍然只有13个实例

  • 删除这些记录CloudKit仪表板只会使它们消失一段时间。当我重新加载页面时,它们会再次弹出。

  • When I reset my CloudKit dashboard and start all over again, it works perfect. No code changes made.
  • Obviously, I'm constantly editing my code as the app is in development. However, I generally don't edit the data types in my code that are to be stored in CloudKit. When I do, this issue does not arise straigt afterwards
  • Changes in the CloudKit Dashboard (e.g. adding data types) do not cause this issue
  • Am not storing any records locally, like in core data. They just sit in a singleton as long as I use them
  • When I go to CloudKit Dashboard, the Product Record Type shows it has e.g. 13 instances. Sometimes it's so bad, that my app actually loads over 100. I can also see them when I go to the recordZone, but still the RecordType says it only has 13 instances
  • Deleting these records in CloudKit Dashboard only makes them disappear for a while. When I reload the page, they pop up again.

现在已经这样了一段时间了,我检查了一下代码,Apple Library和Google多次,但我无法弄清楚导致此问题的原因。

It has been going like this for a while now, and I have checked my code, the Apple Library and google numerous of times but I cannot figure out what causes this issue.

问题:
任何人知道如何克服这个问题吗?正如我所说的那样,我已经遇到了几个星期,重置我的CloudKit仪表板只能治愈它长达一周,然后再次弹出。如果能帮助您回答我的问题,我也非常乐意发布任何代码。我最初没有发布任何代码,因为我不知道代码可能会导致这种情况。

Question:Would anyone know anything on how to overcome this issue? As I said, I've been running into this for weeks, and resetting my CloudKit dashboard only 'cures' it for up to a week, then it pops up again. I'd also be more than happy to post any code if that would help you answer my question. I haven't posted any code initially, as I have no clue what code might cause this.

任何答案都将受到高度赞赏

Any answer would be highly appreciated

推荐答案

Apple回复了一个错误报告,我已经提交过这个问题应该用iOS 9来解决。到目前为止这似乎是正确的,因为这个问题还没有发生再次,但请告诉我这是否还在困扰某人。

Apple replied to a bug report that I have filed that this issue should be solved with iOS 9. So far that seems to be right as this issue hasn't occured again, but please let me know if this is still bothering someone.

这篇关于删除的CloudKit记录重新出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 07:04