-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote schema not reliably created/updated #179
Comments
Those docs are specific to SyncKit was created before There are two ways to create the schema:
And eventually you would promote the schema to Production once you're sure it won't change. Hope that was helpful. |
Hey, thanks for the reply. Of course I know that SyncKit is an alternative and not based on Apple's implementation but the bug I am mentioning is related to way two you describe:
This does not work reliably and I don't know why. For the alternative
I think some additional documentation on how to do that would be great -- like which Core Data data types map to which Cloud Kit types. Or maybe as a feature suggestion, you could generate something similar to what Apple provides to just initialize the Cloud Kit schema once by going through your Core Data model. |
Are you actually creating and uploading all the possible objects/relationships in your schema while you develop? In my case I've never created the schema manually using the dashboard as I have never needed to.
You're very right, I'll do that too. |
I, too, started facing this problem. Never faced this before. I have many record types in CloudKit and they are in production now. When I created a new Realm entity, got this error during sync: I tried debugging a little, but it looks like the problem is not with SyncKit. SyncKit has correctly captured this new RecordType in it's SyncedEntity table. |
Anyone find resolution for this? |
If I start with a reset dev database/environment in my iCloud Console and created my first CloudKitSynchronizer, it will "lazily" create some record types.
Specifically it will create those that already exist at the time of the sync. However, if other records are created later, they don't get created and sometimes references are missing. I tried different combinations of resetting my local metadata and waiting with the first sync until I think I have all entities created locally but I never got it to reliably create all record types.
Is there a way to initialize the remote schema based on the local schema like explained in the Apple docs (https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/creating_a_core_data_model_for_cloudkit)?
The text was updated successfully, but these errors were encountered: