Core Data + iCloud between iOS 9 & OS X El Capitan does not work

Originator:rafael
Number:rdar://22390535 Date Originated:2015-08-22
Status:Open Resolved:
Product:iOS SDK Product Version:OS X 10.11 Beta (15A263e) & iOS 9 Beta (13A4325c)
Classification:Core Data + iCloud between iOS 9 & OS X El Capitan does not work Reproducible:
 
Summary:
When you create a Core Data app from the default Xcode template and add a minimal iCloud store configuration, sync won’t work between iOS & OS X devices.

Steps to Reproduce:
1. Create a default Swift Core Data project on both iOS & OS X.
2. Configure your Core Data stack to use iCloud (https://developer.apple.com/library/ios/documentation/DataManagement/Conceptual/UsingCoreDataWithiCloudPG/UsingSQLiteStoragewithiCloud/UsingSQLiteStoragewithiCloud.html).
3. Run both apps.

Expected Results:
When adding entries on OS X this should be reflected on the iOS side. When adding entries on iOS this should be reflected on the OS X side. 

Actual Results:
Entries from iOS sync back to OS X, but the sync doesn’t work the other way around. Instead we get the following error on an iOS device:

[PFUbiquityFilePresenter processPendingURLs]_block_invoke(447): CoreData: Ubiquity:  Librarian returned a serious error for starting downloads Error Domain=BRCloudDocsErrorDomain Code=5 "No document at URL"

Version:
OS X 10.11 Beta (15A263e) & iOS 9 Beta (13A4325c)

Configuration:
Mac Pro & iPhone 5s

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!