Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

What is the analogue to CKSyncEngine for public databases

Open
#6 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
swift

Research direction

Start at the initializeSyncEngine function and the CKSyncEngine.Configuration setup shown in the issue, then consult Apple’s CloudKit documentation for public-database support. Identify a supported approach for syncing a local database with the public database; the work is done when that approach and its limitations are documented.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Swift
Stars
270
Forks
15
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apple/sample-cloudkit-sync-engine

All issues in apple/sample-cloudkit-sync-engine

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.