iOS Development

ios – Detecting Quota exceeded in iCloud storage

Spread the love


I’m attempting to detect when a person’s iCloud storage is full so I can put a particular message up in my app. I’ve crammed up my iCloud storage in order that after I run my app I get the next error:

error: CoreData+CloudKit: -NSCloudKitMirroringDelegate _requestAbortedNotInitialized:: <NSCloudKitMirroringDelegate: 0x281ddc1e0> – By no means efficiently initialized and can’t execute request ‘<NSCloudKitMirroringExportRequest: 0x2841e00f0> 51383346-87BA-44D8-B527-A0B1EE35A0EF’ as a result of error: <CKError 0x282c50db0: “Partial Failure” (2/1011); “Failed to change some information”; uuid = 7BA17495-4F05-4AF4-A463-C0DF5A823B2E; container ID = “iCloud.com.neufsters.pangram”; partial errors: {
E30B2972-FD4B-4D2A-BD1C-EB6F33F5367D:(com.apple.coredata.cloudkit.zone:_defaultOwner_) = <CKError 0x282c155f0: “Quota Exceeded” (25/2035); server message = “Quota exceeded”; op = FC4D3188D0A46ABC; uuid = 7BA17495-4F05-4AF4-A463-C0DF5A823B2E; Retry after 315.0 seconds>
2FC9A487-D630-444D-B7F4-27A0F3A6B46E:(com.apple.coredata.cloudkit.zone:_defaultOwner_) = <CKError 0x282c52820: “Quota Exceeded” (25/2035); server message = “Quota exceeded”; op = FC4D3188D0A46ABC; uuid = 7BA17495-4F05-4AF4-A463-C0DF5A823B2E; Retry after 315.0 seconds>
903DD6A0-0BD8-46C0-84FB-E89797514D9F:(com.apple.coredata.cloudkit.zone:_defaultOwner_) = <CKError 0x282c513e0: “Quota Exceeded” (25/2035); server message = “Quota exceeded”; op = FC4D3188D0A46ABC; uuid = 7BA17495-4F05-4AF4-A463-C0DF5A823B2E; Retry after 315.0 seconds>. }>

I’ve tried utilizing code much like NSPersistentCloudKitContainer: How one can examine if information is synced to CloudKit to get callbacks when there are CloudKit occasions, however I by no means get a .quotaExceeded error code, and partialErrorsByItemID is all the time empty.

Any options on how I can detect iCloud quota exceeded?

Leave a Reply

Your email address will not be published. Required fields are marked *