UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

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      

Hacking with Swift is sponsored by Superwall

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

Learn More

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

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.