iCloud Core Data Not available after running in Xcode 6 / ios 8 SDK

后端 未结 1 1991
一向
一向 2021-02-03 15:35

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

I\'m having some trouble since running it in XCode 6 though, even on an iOS 7 device. Here\'

相关标签:
1条回答
  • 2021-02-03 15:55

    It looks like based on the screenshot of the entitlements that you have both the old (ubiquity container) and new (iCloud container) related entitlements. I found, and have seen reported, issues when both old and new entitlements are present.

    For my app I kept only the old entitlements and deleted the two new ones that XCode 6 will attempt to add to fix issues that it believes are present with iCloud. The two keys I removed were:

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

    I kept only the original key (com.apple.developer.ubiquity-container-identifiers) and did not change it's value. With that the app still works in iOS 7 when built using XCode 6 GM and can access all of the data as before. In iOS 8 it will also work however it seems to require the user to have updated their account to iCloud Drive.

    0 讨论(0)
提交回复
热议问题