Post

Replies

Boosts

Views

Created

SwiftData+Cloudkit and records with CKAsset import on fresh install never ends.
I’m using SwiftData with CloudKit and running into an issue during initial sync on a fresh device. I’m importing a small set of records, some records has images as CKAsset (with about 5 images ~3MB). Records indexes are the default ones for the Dev env. The problem is that the import process never seems to complete. However, if I delete those records that contains the assets from the iCloud Dashboard, the import finishes successfully. Has anyone experienced something similar? What approach would you recommend to handle this without implementing a custom sync layer on top of CloudKit? I am logging remote changes events (NSPersistentStoreRemoteChange): CloudKit import in progress...|2026-04-25 22:18:10| Then I see: Background Task 49 ("CoreData: CloudKit Import"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this. And then the import never ends. Thanks!
1
0
193
1w
CloudKit, cannot deploy private database initial schema to production
We’re using a private database with a custom zone. Record types and related schema are created programmatically rather than through the dashboard. When running the app in the development environment, I can see that data is saved and can be retrieved successfully. However, in the iCloud console, I don’t see any record types or even the custom zone. Additionally, I’m unable to deploy any schema to production because no changes are detected. Do you have any ideas on what we might be missing? Installing the app from TestFlight when trying to upload a record CloudKit reports this error: <CKError 0x13f40bb10: "Invalid Arguments" (12/2006); server message = "Cannot create new type MyType in production schema" ...>
2
0
334
Mar ’26
Request cancelled when trying to detect faces in photo using VNDetectFaceRectanglesRequest.
Hi, I am running the following code and I am getting an error that I was not able to find what is the cause of it. The code runs on its own queue. Code: let handler = VNImageRequestHandler(data: photoData, options: [:]) let request = VNDetectFaceRectanglesRequest { request, error in guard error == nil, let results = request.results, results.count > 0 else { return } } request.preferBackgroundProcessing = true try? handler.perform([request]) Error: Error Domain=com.apple.vis Code=1 "request VNDetectFaceRectanglesRequest was cancelled" UserInfo={VNRequest=<VNDetectFaceRectanglesRequest: 0x600002044000> VNDetectFaceRectanglesRequestRevision3 preferBackgroundProcessing ROI=[0, 0, 1, 1], NSLocalizedDescription=request VNDetectFaceRectanglesRequest was cancelled} Env: MacBook Pro M1 Xcode Version 13.3.1 Deployment Target iOS 13
2
0
2.2k
Jun ’22
SwiftData+Cloudkit and records with CKAsset import on fresh install never ends.
I’m using SwiftData with CloudKit and running into an issue during initial sync on a fresh device. I’m importing a small set of records, some records has images as CKAsset (with about 5 images ~3MB). Records indexes are the default ones for the Dev env. The problem is that the import process never seems to complete. However, if I delete those records that contains the assets from the iCloud Dashboard, the import finishes successfully. Has anyone experienced something similar? What approach would you recommend to handle this without implementing a custom sync layer on top of CloudKit? I am logging remote changes events (NSPersistentStoreRemoteChange): CloudKit import in progress...|2026-04-25 22:18:10| Then I see: Background Task 49 ("CoreData: CloudKit Import"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this. And then the import never ends. Thanks!
Replies
1
Boosts
0
Views
193
Activity
1w
CloudKit, cannot deploy private database initial schema to production
We’re using a private database with a custom zone. Record types and related schema are created programmatically rather than through the dashboard. When running the app in the development environment, I can see that data is saved and can be retrieved successfully. However, in the iCloud console, I don’t see any record types or even the custom zone. Additionally, I’m unable to deploy any schema to production because no changes are detected. Do you have any ideas on what we might be missing? Installing the app from TestFlight when trying to upload a record CloudKit reports this error: <CKError 0x13f40bb10: "Invalid Arguments" (12/2006); server message = "Cannot create new type MyType in production schema" ...>
Replies
2
Boosts
0
Views
334
Activity
Mar ’26
Request cancelled when trying to detect faces in photo using VNDetectFaceRectanglesRequest.
Hi, I am running the following code and I am getting an error that I was not able to find what is the cause of it. The code runs on its own queue. Code: let handler = VNImageRequestHandler(data: photoData, options: [:]) let request = VNDetectFaceRectanglesRequest { request, error in guard error == nil, let results = request.results, results.count > 0 else { return } } request.preferBackgroundProcessing = true try? handler.perform([request]) Error: Error Domain=com.apple.vis Code=1 "request VNDetectFaceRectanglesRequest was cancelled" UserInfo={VNRequest=<VNDetectFaceRectanglesRequest: 0x600002044000> VNDetectFaceRectanglesRequestRevision3 preferBackgroundProcessing ROI=[0, 0, 1, 1], NSLocalizedDescription=request VNDetectFaceRectanglesRequest was cancelled} Env: MacBook Pro M1 Xcode Version 13.3.1 Deployment Target iOS 13
Replies
2
Boosts
0
Views
2.2k
Activity
Jun ’22