Relative Content

Tag Archive for macoscloudkitswift-data

CloudKit sync issues when not running via Xcode

I have written a macOS app using SwiftData and CloudKit with the intent of sharing data records between devices. If I build and run the app via Xcode, I can create a new record and observe it appearing in the CloudKit database (using the CloudKit console). However, if I locate the app with Product > Show Build Folder in Finder and run it, it fails to sync. Same happens if I go the route of Product > Archive, and distribute the app that way. The only way the database syncs successfully is by launching the app through Xcode.

MacOS CloudKit sync issues

I have written a MacOS app using SwiftData and CloudKit, with the intent of sharing data records between devices. If I build and run the app via Xcode, I can create a new record and observe it appearing in the CloudKit database (using the CloudKit console). However, if I locate the app with Product > Show Build Folder in Finder and run it, it fails to sync. Same happens if I go the route of Product > Archive, and distribute the app that way. The only way the database syncs successfully is by launching the app through Xcode. I didn’t expect