ICloud Master Data Not Available After Launch in Xcode 6 / ios 8 SDK

I have an application that uses Core Data with iCloud sync. It works great in iOS 7.

I have problems running in Xcode 6, although on an iOS 7 device. Here is my test:

  • on an iOS 7 device: download the current live app from the app store
  • Sync data from iCloud
  • Create and launch a new version of the application
  • Persistent persistent storage, source data no longer available

Here are screenshots of my profile and xcode settings:

enter image description here

I also tried the following rights:

  • Just com.apple.developer.icloud-container-identifiers
  • com.apple.developer.ubiquity-container-identifiers This is what I had before. When I run a test with this in place, the data is there for the first time, but not in the second run. There are no events about the store change, but it says Using local storage: 1 on the first and second launch
  • Both are above. Get the same results as # 2
+5
source share
1 answer

It looks like in the screenshot of the rights that you have both the old (ubiquitous container) and the new (iCloud container) corresponding rights. I found and saw problems reports when both old and new rights are present.

For my application, I saved only the old rights and deleted two new ones that Xcode 6 will try to add to fix the problems that, in his opinion, are present in iCloud. Two keys deleted by me:

  • com.apple.developer.icloud-container-identifiers
  • com.apple.developer.icloud services

I saved only the original key (com.apple.developer.ubiquity-container-identifiers) and did not change its value. At the same time, the application still works in iOS 7 when building using Xcode 6 GM and can access all the data as before. It will also work in iOS 8, however it seems that the user should upgrade their account on iCloud Drive.

+3
source

Source: https://habr.com/ru/post/1202461/


All Articles