简体   繁体   English

iOS iCloud容器:这两个容器是一样的吗?

[英]iOS iCloud Containers: are these two containers the same?

What I did 我做了什么

I built an iOS 7 app, using default options for anything iCloud related. 我构建了一个iOS 7应用程序,使用与iCloud相关的任何内容的默认选项。 In Xcode 6, I now see that in my project, on my main target, under capabilities, under iCloud - it shows that my app does not use the default container. 在Xcode 6中,我现在看到在我的项目中,在我的主要目标上,在iCloud下的功能下 - 它显示我的应用程序不使用默认容器。 If I select "Use default container" it changes the URL. 如果我选择“使用默认容器”,则会更改URL。

iOS 7 format - "ABC123ABCD.com.companyname.product"
iOS 8 default - "iCloud.com.companyname.product"


Questions 问题

  • If I change to the iOS 8 default, will users loose their documents, OR - are these effectively the same directory? 如果我更改为iOS 8默认值,用户是否会丢失他们的文档,或者 - 这些目录是否真的相同?

  • Why the change? 为什么要改变? What's the difference? 有什么不同? Any clarity around this change would be really helpful. 任何关于这种变化的清晰度都会非常有帮助。

Those are not the same containers. 那些不是同一个容器。 Existing data from the first container will not be accessible in the second container. 来自第一个容器的现有数据将无法在第二个容器中访问。

Existing containers of your live apps are still accessible, but as of Xocde 6.0.1 it appears that it is required for new containers to begin with iCloud. 现有应用程序的现有容器仍可访问,但从Xocde 6.0.1开始,新容器似乎需要以iCloud开头。

Why this has changed probably has to do with Cloud Kit, but why Apple have not told us developers about this change or how to handle it appropriately is beyond me, and absolutely ludicrous I think. 为什么这个改变可能与Cloud Kit有关,但为什么Apple没有告诉我们开发人员关于这个改变或如何妥善处理它是超出我的,我认为绝对荒谬。 This change is fundamental, causes lots of headaches and has not been implemented in beta versions of Xcode 6. 这种变化是根本性的,导致许多令人头疼的问题,并且尚未在Xcode 6的beta版本中实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM