Post

Replies

Boosts

Views

Activity

Reply to Selecting which data models sync with iCloud SwiftData
Hello, Not sure if you still have the same issue. I had the same problem, but today after several trials I found out that it seems to be solved by simply naming the configurations, i.e.: let modelConfigForNoCloudSync = ModelConfiguration("local", schema: modelNotForCloudSyncing, cloudKitDatabase: .none) let modelConfigForCloudSync = ModelConfiguration("synced", schema: modelsForCloudSyncing, cloudKitDatabase: .automatic) This seems to be enough to get rid of all the 'duplicate stores' issues, and the data syncs as intended.
Topic: App & System Services SubTopic: iCloud Tags:
Mar ’24
Reply to Selecting which data models sync with iCloud SwiftData
Hello, Not sure if you still have the same issue. I had the same problem, but today after several trials I found out that it seems to be solved by simply naming the configurations, i.e.: let modelConfigForNoCloudSync = ModelConfiguration("local", schema: modelNotForCloudSyncing, cloudKitDatabase: .none) let modelConfigForCloudSync = ModelConfiguration("synced", schema: modelsForCloudSyncing, cloudKitDatabase: .automatic) This seems to be enough to get rid of all the 'duplicate stores' issues, and the data syncs as intended.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Mar ’24