Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the analogue to CKSyncEngine for public databases #6

Open
avnerbarr opened this issue Sep 26, 2023 · 0 comments
Open

What is the analogue to CKSyncEngine for public databases #6

avnerbarr opened this issue Sep 26, 2023 · 0 comments

Comments

@avnerbarr
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant