Trying to get iCloud Core Data to work between separate iOS and macOS apps. I can see that...
1: iCloud core data is working on each app separately (tested on separate devices)
2: apps are sharing a container (documents work ok)
3: drilling into 'Mobile Documents' directory shows the directories shown when iCloud core data connects to be in the same container
Here is the drill down using the Terminal app
iCloud~com~Distribution-Systems-Associates~RWIA (THIS IS THE CONTAINER NAME)
CoreData
testFindItStore (THIS IS THE DATA STORE NAME)
joeruth~50BDB140-65A8-5D85-B5A2-AD5EA59FE89C (macOS URL)
mobile~727D323E-9EFA-4C40-BE69-7ABB9913325B (iOS URL)
However, it doesn't work between the two apps. I read that the 'primary' app needs approved by the app store before any sharing can go on. Is that true or not? Should there be two directories under testFindItStore or just one? SHOULD there be two directories and the data change are communicated between each via iCloud?
Here are the log messages from each app when they connect to iCloud:
This is the Mac app log...
2016-11-09 20:54:24.455 Remember Where It's At for Mac V3[64763:3708924] -PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:: CoreData: Ubiquity: joeruth~50BDB140-65A8-5D85-B5A2-AD5EA59FE89C:testFindItStore Using local storage: 1 for new NSFileManager current token 2016-11-09 20:54:25.415 Remember Where It's At for Mac V3[64763:3709018] -PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:: CoreData: Ubiquity: joeruth~50BDB140-65A8-5D85-B5A2-AD5EA59FE89C:testFindItStore Using local storage: 0 for new NSFileManager current token
This is the iOS log...
2016-11-09 20:53:00.308265 Remember-Where-Its-At[299:21901] -PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:: CoreData: Ubiquity: mobile~727D323E-9EFA-4C40-BE69-7ABB9913325B:testFindItStore Using local storage: 1 for new NSFileManager current token <2d17fda1 4ca8021b 7e3217c3 0d17701e 681b666b> 2016-11-09 20:53:00.591029 Remember-Where-Its-At[299:21902] -PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:: CoreData: Ubiquity: mobile~727D323E-9EFA-4C40-BE69-7ABB9913325B:testFindItStore Using local storage: 0 for new NSFileManager current token <2d17fda1 4ca8021b 7e3217c3 0d17701e 681b666b>