I am using MagicalRecord in my project. So far, he has worked with the SQLite store. But now I'm trying to βupgradeβ to iCloud to sync between versions of the iPhone and iPad.
But it does not work as I expected. The app still works the same: the data is saved and read, but it is not saved in iCloud, as I expected.
The only change I made in setting up MagicalRecord.
Before:
[MagicalRecordHelpers setupCoreDataStackWithAutoMigratingSqliteStoreNamed:@"hdhomerun.sqlite"];
After:
[MagicalRecordHelpers setupCoreDataStackWithiCloudContainer:@"AAAAAAAAAA.com.unpaq.hdhomerun" localStoreNamed:@"hdhomerun_local"];
AAAAA is not AAAAA code, but my personal identifier is from the developer profile.
In the output log, I see that iCloud is detected and no errors occur. I also tried going through the code and it all looks fine.
What am I missing? Do I need to listen to some event? I could not find an example of using MagicalRecord with iCloud.
The MagicalRecord version is:
https://github.com/magicalpanda/MagicalRecord
source share