GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

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 Essential Developer.

SPONSORED Transform your career with the iOS Lead Essentials. Unlock over 40 hours of expert training, mentorship, and community support to secure your place among the best devs. Click for early access to this limited offer and a FREE crash course.

Click to save your free spot now

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

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.