apple / apple/sample-cloudkit-sync-engine

What is the analogue to CKSyncEngine for public databases

未关闭
#6 0 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Swift
星标
270
派生
15
PR 合并指标
30 天内没有已合并 PR

描述

I modified this piece:

```
func initializeSyncEngine() {
var configuration = CKSyncEngine.Configuration(
database: Self.container.publicCloudDatabase, // <<<<<<<<<<<<<<<<<<<<< THIS
stateSerialization: self.appData.stateSerialization,
delegate: self
)
```
And hit the error:

```
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'CKSyncEngine cannot be used in the Public database'
*** First throw call stack:
```

So I read (quickly 😄 ) the documentation and noticed this tid-bit:

image

So, basically my question is , what is the alternative to `CKSyncEngine` providing the easiest way to sync a local database with the remote public iCloud?

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 issue 中展示的 initializeSyncEngine 函数和 CKSyncEngine.Configuration 设置开始,然后查阅 Apple 的 CloudKit 文档,了解对公共数据库的支持。确定一种受支持的方法,用于将本地数据库与公共数据库同步;当该方法及其限制得到记录时,工作即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
swift
领域
databases, mobile-dev
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。