Post

Replies

Boosts

Views

Activity

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.1k
Nov ’22
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" ...>
1
0
111
2d
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.1k
Activity
Nov ’22
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
1
Boosts
0
Views
111
Activity
2d