哪个API可以替代iCloud的核心数据 [英] Which API is the replacement for Core Data with iCloud

查看:60
本文介绍了哪个API可以替代iCloud的核心数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新,2016年6月:截至NSPersistentStoreCoordinator的最新文档,与带iCloud的核心数据相关的所有内容均标记为不推荐使用.因此,应该避免在新开发中使用它.

Update, June 2016: As of the most recent documentation for NSPersistentStoreCoordinator, everything related to Core Data with iCloud is marked as deprecated. As a result it should probably be avoided for new development.

使用Core Data,iCloud和CloudKit进行同步和备份以及它们如何协同工作

重要事项不建议将iCloud与Core Data一起使用,并且不再受支持.

Important The use of iCloud with Core Data has been deprecated and is no longer being supported.

我一直在阅读有关将iCloud与Core Data集成的信息.提到的Stack Overflow答案提到了仅将核心数据数据库同步到iCloud的可能性,而且还说它已被弃用.应该用什么技术代替.是CloudKit吗?有人可以指出有关如何将Core Data与云同步集成的文档(以应该使用的API/技术替代)

I've been reading about integrating iCloud with Core Data. The mentioned Stack Overflow answer mentions the possibility of just syncing the core data database to iCloud, but also says that it's deprecated. What technology is supposed to replace it. Is it CloudKit? Could someone point out documentation about how to integrate Core Data with cloud syncing (whichever API/technology is supposed to replace it)

推荐答案

Apple没有提供替代产品.目前没有Apple文档关于在设备之间同步Core Data,因为目前没有针对这种情况的Apple解决方案.

Apple did not provide a replacement. There is currently no Apple documentation about syncing Core Data between devices, because there is currently no Apple solution for this situation.

Apple确实提供了CloudKit,它可以在设备之间同步数据.它不是替代品,因为它不是设计为脱机数据存储.没有内置的Core Data/CloudKit连接,因此将两者集成起来取决于应用程序开发人员.有第三方框架,例如 Seam3

Apple does provide CloudKit, which syncs data between devices. It's not a replacement, because it's not designed as an offline data store. There is no built-in Core Data/CloudKit connection, so integrating the two is up to app developers. There are third party frameworks like Seam3 and CloudCore but I haven't used either so I couldn't say how well they work.

还有一个集成框架,它可以在各种服务器后端上进行同步.有免费和付费版本.

There's also the Ensembles framework, which syncs over a variety of server back ends. There are free and paid versions.

最后,如果您不介意引入第三方服务,则Google的 Firebase 是一种有效的解决方案本地存储数据并在设备之间进行同步.

Finally, if you don't mind bringing in a third-party service, Google's Firebase is an effective solution to storing data locally and syncing it between devices.

如果您认为Apple应该提供一个同步解决方案(一个合理的主意,我想说),请提交增强功能要求与苹果公司一起描述您的需求和使用方式.

If you think that Apple should provide a syncing solution-- a reasonable idea, I'd say-- please file an enhancement request with Apple describing what you need and how you would use it.

这篇关于哪个API可以替代iCloud的核心数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆