cloudkit

Is there an API for iCloud disk capacity and usage?

不问归期 提交于 2020-08-24 05:28:33
问题 I use NSFileManager to get the current device disk space (total, used, and free) like so... let systemAttributes = try? NSFileManager.defaultManager().attributesOfFileSystemForPath(NSHomeDirectory() as String) let space = (systemAttributes?[NSFileSystemSize] as? NSNumber)?.longLongValue Is there any way to do something similar for a user's iCloud account? I want to be able to present a user's iCloud disk space statistics within an app. 回答1: Capacity iCloud online capacity is determined by

最新 iOS 框架整体梳理(一)

北慕城南 提交于 2020-08-17 08:48:22
前言 这段话其实是我差不多写完文章之后再回过头来写的,原本在写文章之前想写一下写的初衷的,但当我写完之后感觉初衷没有收获更真切一些。其实到这篇为止总结出来的也就三十多个,有些是比较新的框架,有些是我们开发者一直在使用接触的框架,我感觉收获还是很多。 很多东西你要不是一个一直在了解跟进WWDC内容的开发者可能时间一长你就不知道最近都出了些什么新的框架,但这样你走一遍之后你就会把许多遗漏掉的东西找回来,我的想法一直都没有变,作为一个移动端的开发者,不仅要“向下深挖” ,“向上学习”也是最基本的条件,就算你不清楚每一个框架具体的使用细节, 至少你一定要知道框架可以用来干什么!下面总结出来的框架有些也需要我自己去学习,果然欠了的迟早是要还的😺 Part - 1 下面的框架我们按照我们的图一个一个的说: 1、Accelerate: 一个大规模的数学计算和图像计算的框架,它的作用和使用推荐下面两篇文章 Swift-Accelerate 框架介绍 Introduction to the Accelerate Framework in Swift 官方文档 Accelerate 2、Accounts: 它是iOS原生提供的一套账户管理框架,其支持Facebook,新浪微博,腾讯微博,Twitter和领英账户管理的功能。需要注意,在iOS 11 及以上系统中,将此功能已经删除,因此Accounts

“Use default container” doesn't show in iCloud Capabilities

守給你的承諾、 提交于 2020-08-02 07:41:45
问题 I want set up iCloud sync for CoreData using CloudKit . But when I add iCloud in Capabilities and enable CloudKit checkbox, Use default container don't appear as described in the Doc: Instead, I got this: Maybe I'm missing something? 回答1: This changed in Xcode 11, there no longer is a default container checkbox. Instead you have to create your own container. Just press the + and enter your bundle-id. Xcode will automatically prefix it with iCloud. So the result will be iCloud.<your app’s

“Use default container” doesn't show in iCloud Capabilities

瘦欲@ 提交于 2020-08-02 07:41:42
问题 I want set up iCloud sync for CoreData using CloudKit . But when I add iCloud in Capabilities and enable CloudKit checkbox, Use default container don't appear as described in the Doc: Instead, I got this: Maybe I'm missing something? 回答1: This changed in Xcode 11, there no longer is a default container checkbox. Instead you have to create your own container. Just press the + and enter your bundle-id. Xcode will automatically prefix it with iCloud. So the result will be iCloud.<your app’s

Does iCloud need to be in the Production environment in order to use in Production?

人盡茶涼 提交于 2020-07-19 10:58:40
问题 I added Cloudkit support to my iOS and WatchOS App, but I cannot deploy my schema to production due to a bug: Do I need to wait until this is fixed so I can deploy to Production or can I ship and still be in Development mode on the console? I've also read that I can edit my plist to switch to development mode but I am not seeing that option in my Entitlements: Update: July 13 6pm EST no longer getting the error message but now it acts as if it is going to deploy but when I hit cancel and

iCloud dashboard: Cannot deploy CloudKit schema to Production

不问归期 提交于 2020-07-19 05:05:46
问题 I have a released app with an existing production schema. I made changes to the development schema and now I want to deploy to production. After clicking Deploy Schema to Production... , the popup dialog says There was a problem loading the environment's status . js console shows the server responded with an HTTP 500. I tried a lot of times this morning and has been the same each time. Has anyone seen this before? 回答1: Tried again and it is now working. Guessing Apple fixed on their end. 来源:

iCloud dashboard: Cannot deploy CloudKit schema to Production

做~自己de王妃 提交于 2020-07-19 05:05:34
问题 I have a released app with an existing production schema. I made changes to the development schema and now I want to deploy to production. After clicking Deploy Schema to Production... , the popup dialog says There was a problem loading the environment's status . js console shows the server responded with an HTTP 500. I tried a lot of times this morning and has been the same each time. Has anyone seen this before? 回答1: Tried again and it is now working. Guessing Apple fixed on their end. 来源:

Share Core Data between users with NSPersistentCloudKitContainer

给你一囗甜甜゛ 提交于 2020-07-18 05:40:30
问题 Apple introduced the NSPersistentCloudKitContainer with iOS13 which enable us to use CloudKit with Core Data. I got it working pretty much instantly on different devices but my main issue is still left. Is it possible to share the data in an easy way with other users? I've been reading on CKShare but don't see how I can go from NSPersistentCloudKitContainer to that in an easy way. 回答1: There are methods on NSPersistentCloudKitContainer for accessing the underlying cloudkit records: https:/