WWDC24 SALE: Save 50% on all my Swift books and bundles! >>

Core Data iCloud sync only with Mac App Store Apps?

Forums > macOS

Hey guys,

does Core Data sync over iCloud/CloudKit only work for apps that are distributed via the Mac App Store?

I didn't manage my app to sync Core Data so I created a small test project. I got an iMac and a MacBook. When I run the app from Xcode on my iMac and my MacBook at the same time, the Core Data Entitiy is synced correctly. When I deploy the app via Archive/Distribute/Developer ID and run this app on both devices, the Core Data Entity is not being synced.

I'm I doing something wrong in the deployment process or does syncing only work for App Store Apps?

Thanks a lot! Stephan

3      

Have you deployed the schema to production in the CloudKit Dashboard? IMHO this is necessary. At least it is necessary when you want to test your apps via TestFlight.

4      

Sorry, I forgot to mention. Yes, schema is deployed to production.

3      

Tbh: I dont' know ... ;) They're talking a lot about Testflight and iPhone -> both don't fit to my case.

But in the "solution" he mentioned that he created the entitlements only under debug and not release. Where are theese entitlements, how do I create one for release?

3      

Actually, I don't know, either. I don't have access to Xcode atm. But I've never experienced this behaviour accidently. Perhaps build settings?

3      

@oden  

I am also encountering the same issue. Has a solution been found?

3      

Save 50% in my WWDC sale.

SAVE 50% To celebrate WWDC24, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.