You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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?
The text was updated successfully, but these errors were encountered:
I modified this piece:
And hit the error:
So I read (quickly 😄 ) the documentation and noticed this tid-bit:
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?The text was updated successfully, but these errors were encountered: