nothirst / TICoreDataSync

Automatic synchronization for Core Data apps, between any combination of Mac OS X and iOS: Mac to iPhone to iPad to iPod touch and back again.
https://github.com/nothirst/TICoreDataSync/wiki
807 stars 61 forks source link

Do I need to manually populate ticdsSyncID for an existing database? #78

Closed agrigg closed 11 years ago

agrigg commented 11 years ago

I have customers who have an existing version of the app with existing data. When they setup syncing for the first time Core Data will migrate the database to the include the ticdsSyncID attribute on each entity. Since those entities were created before the ticdsSyncID was added, it will be nil. Do I need to manually set the ticdsSyncID on each entity to a unique UUID before enabling syncing for the first time on each device and uploading the whole store?

I'm getting this error when syncing the second device and wonder if that is the problem:

    kTICDSSyncWarningAttributes = 31;
    kTICDSSyncWarningDescription = "Object not found locally for attribute sync change";
    kTICDSSyncWarningEntityName = Prayer;
    kTICDSSyncWarningType = 1;
agrigg commented 11 years ago

Before I synced for the first time, I set the ticdsSyncID to a UUID for each of my entities and that resolved this problem.