The test is as follows:failed: caught error: "Error Domain=com.apple.vis Code=9 "encountered an unexpected condition: Unspecified error" UserInfo={NSLocalizedDescription=encountered an unexpected condition: Unspecified error}
Code Block func testExample() throws { let bundle = Bundle(for: type(of: self)) let image = UIImage(named: "image.jpeg", in: bundle, with: nil)! let imageRequestHandler = VNImageRequestHandler(cgImage: image.cgImage!) let captureQualityRequest = VNDetectFaceCaptureQualityRequest() try imageRequestHandler.perform([captureQualityRequest]) }
This error is happening on Xcode 12.2 (and 12.3 beta), macOS 11.0.1, and a Late 2020 13" M1 MacBook Pro.
This does not happen on Xcode 12.2 and macOS 11.0.1 on an Intel MacBook Pro.
Sample project can be found here:
https://gitlab.com/kabucey/vnimagerequesthandlertest
Has anyone encountered this before?