I'm having this exact same issue. Did anyone here happen to work out a solution? My app will work perfectly after adding data but on a fresh install on another device the data is returned as empty. I tried listening for "NSPersistentStoreRemoteChange" events which do come in eventually and then re-fetching the data but not working yet. My gut tells me there has to be a better way. I looked into CKSyncEngine but I really thought it shouldn't be necessary with SwiftData persistence and the fact that my app works fine on the new device on the second launch.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: