SwiftData+Clooudkit And import event never ending when have assets on records

I’m using SwiftData with CloudKit and running into an issue during initial sync on a fresh device. I’m importing a small set of records, some records has images as CKAsset (with about 5 images ~3MB).

The problem is that the import process never seems to complete. However, if I delete those records that contains the assets from the iCloud Dashboard, the import finishes successfully.

Has anyone experienced something similar? What approach would you recommend to handle this without implementing a custom sync layer on top of CloudKit?

Thanks!

Ok, my approach to this will be, keep my “metadata” on swiftdata+clooudkit, then for images/videos use another zone non the same container an use plain CloudKit operations for the media. Let see how this work.

That approach id the job, the cons is that I will have to keep in sync insertion and deletion between the metadata (swiftdata+cloudkit) zone and my custom zone for assets using plain ck.

Anyway, I will stick to this solution until I find why using swiftdata+cloudkit for all gets the CloudKit operation stuck in “importing”.

Cya.