Build Information
Failed to build Evil with Swift 5.10 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/evilgix/Evil.git
Reference: 0.9.2
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/evilgix/Evil
* tag 0.9.2 -> FETCH_HEAD
HEAD is now at a411a02 upgrade pod to 0.9.2
Cloned https://github.com/evilgix/Evil.git
Revision (git rev-parse @):
a411a02c86db44eb825bf475b6eacbc07520368b
SUCCESS checkout https://github.com/evilgix/Evil.git at 0.9.2
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $workDir
https://github.com/evilgix/Evil.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--423B1241ED78D482.txt
[3/11] Compiling Evil_macOS SmoothThresholdFilter.swift
[4/11] Compiling Evil_macOS UIImage.swift
[5/11] Compiling Evil_macOS Recognizer.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:141:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func cropChineseIDCardNumberArea() -> Result<Value> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:150:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func cropChineseIDCardNumberArea() -> Value {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:21:16: error: cannot find 'preprocessor' in scope
return preprocessor.croppedMaxRectangle()
^~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:13:30: error: cannot find type 'CIImage' in scope
public typealias Debugger = (CIImage) -> ()
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:133:56: error: value of type 'CIImage' has no member 'preprocessor'
if let images = recognizer.processor?(object)?.preprocessor.divideText().value?.map({ $0.image }) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:39: error: cannot find type 'CIImage' in scope
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:47:23: error: cannot find type 'CIImage' in scope
public let image: CIImage
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:50:27: error: cannot find type 'CIImage' in scope
public init (_ image: CIImage, _ bounds: CGRect) {
^~~~~~~
[6/12] Compiling Evil_macOS Preprocessor.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:98:11: error: cannot find type 'CIImage' in scope
extension CIImage: Preprocessable {}
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:13:30: error: cannot find type 'CIImage' in scope
public typealias Debugger = (CIImage) -> ()
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:20:49: error: cannot find type 'CIColor' in scope
public var colorMonochromeFilterInputColor: CIColor? // CIColorMonochrome kCIInputColorKey 参数
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:47:23: error: cannot find type 'CIImage' in scope
public let image: CIImage
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:50:27: error: cannot find type 'CIImage' in scope
public init (_ image: CIImage, _ bounds: CGRect) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:102:43: error: cannot find type 'CIImage' in scope
public var preprocessor: Preprocessor<CIImage> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:108:43: error: cannot find type 'CIImage' in scope
public var preprocessor: Preprocessor<CIImage> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:114:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func process(conf: Configuration = Configuration.`default`, debugger: Debugger? = nil) -> ProcessedResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:118:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func divideText(result resize: CGSize? = nil, adjustment: Bool = false, debugger: Debugger? = nil) -> DivideResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:122:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func correctionByFace() -> FaceCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:128:40: error: cannot find type 'CIImage' in scope
public extension Preprocessor where T: CIImage {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:138:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func process(conf: Configuration = Configuration.`default`, debugger: Debugger? = nil) -> ProcessedResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:188:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func divideText(result resize: CGSize? = nil, adjustment: Bool = true, debugger: Debugger? = nil) -> DivideResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:233:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func croppedMaxRectangle() -> CorpMaxRectangleResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:264:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func correctionByFace() -> FaceCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:312:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func perspectiveCorrection(boundingBox box: CGRect, topLeft: CGPoint, topRight: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint) -> PerspectiveCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:31:43: error: cannot find 'CIColor' in scope
colorMonochromeFilterInputColor = CIColor(red: 0.75, green: 0.75, blue: 0.75)
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:140:25: error: cannot find type 'CIImage' in scope
var inputImage: CIImage = self.image
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:145:86: error: cannot find 'kCIInputColorKey' in scope
inputImage = inputImage.applyingFilter("CIColorMonochrome", parameters: [kCIInputColorKey: color])
^~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:151:13: error: cannot find 'kCIInputSaturationKey' in scope
kCIInputSaturationKey: conf.colorControls.0,
^~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:152:13: error: cannot find 'kCIInputBrightnessKey' in scope
kCIInputBrightnessKey: conf.colorControls.1,
^~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:153:13: error: cannot find 'kCIInputContrastKey' in scope
kCIInputContrastKey: conf.colorControls.2])
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:157:81: error: cannot find 'kCIInputEVKey' in scope
inputImage = inputImage.applyingFilter("CIExposureAdjust", parameters: [kCIInputEVKey: conf.exposureAdjustEV])
^~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:174:61: error: cannot find 'kCIInputRadiusKey' in scope
parameters: [kCIInputRadiusKey: conf.unsharpMask.0, kCIInputIntensityKey: conf.unsharpMask.1])
^~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:174:100: error: cannot find 'kCIInputIntensityKey' in scope
parameters: [kCIInputRadiusKey: conf.unsharpMask.0, kCIInputIntensityKey: conf.unsharpMask.1])
^~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:193:54: error: cannot convert value of type 'T' to expected argument type 'CIImage'
let handler = VNImageRequestHandler(ciImage: image, options: [:])
^
as! CIImage
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:196:64: warning: conditional downcast from '[VNTextObservation]?' to '[VNTextObservation]' does nothing
guard let textObservations = detectTextRequest.results as? [VNTextObservation] else {
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:208:61: error: value of type 'T' has no member 'extent'
let rect = c.boundingBox.scaled(to: ciImage.extent.size)
~~~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:210:37: error: value of type 'T' has no member 'cropped'
var image = ciImage.cropped(to: rect)
~~~~~~~ ^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:236:54: error: cannot convert value of type 'T' to expected argument type 'CIImage'
let handler = VNImageRequestHandler(ciImage: image, options: [:])
^
as! CIImage
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:244:50: warning: conditional downcast from '[VNRectangleObservation]?' to '[VNRectangleObservation]' does nothing
guard let observations = request.results as? [VNRectangleObservation] else {
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:254:22: error: value of type 'T' has no member 'preprocessor'
return image.preprocessor.perspectiveCorrection(boundingBox: maxObservation.boundingBox,
~~~~~ ^~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:24: error: cannot find 'CIDetector' in scope
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:43: error: cannot find 'CIDetectorTypeFace' in scope
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:87: error: cannot find 'CIDetectorAccuracy' in scope
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:107: error: cannot find 'CIDetectorAccuracyLow' in scope
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:72: error: 'nil' requires a contextual type
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:268:61: error: value of type 'T' has no member 'extent'
var orientation: CGImagePropertyOrientation = image.extent.width > image.extent.height ? .up : .right
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:268:82: error: value of type 'T' has no member 'extent'
var orientation: CGImagePropertyOrientation = image.extent.width > image.extent.height ? .up : .right
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:270:67: error: cannot find 'CIDetectorImageOrientation' in scope
var faceFeatures = detector.features(in: image, options: [CIDetectorImageOrientation: orientation.rawValue])
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:273:70: error: cannot find 'CIDetectorImageOrientation' in scope
let newFeatures = detector.features(in: image, options: [CIDetectorImageOrientation: CGImagePropertyOrientation.left.rawValue])
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:287:67: error: cannot find 'CIDetectorImageOrientation' in scope
faceFeatures = detector.features(in: image, options: [CIDetectorImageOrientation: orientation.rawValue])
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:290:56: error: cannot find type 'CIFaceFeature' in scope
guard var faceFeature = faceFeatures.first as? CIFaceFeature,
^~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:300:68: error: value of type 'T' has no member 'extent'
if orientation == .up && faceFeature.bounds.height > image.extent.height * 0.4 {
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:301:66: error: cannot find 'CIDetectorImageOrientation' in scope
if let newF = detector.features(in: image, options: [CIDetectorImageOrientation: CGImagePropertyOrientation.down.rawValue]).first as? CIFaceFeature {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:301:147: error: cannot find type 'CIFaceFeature' in scope
if let newF = detector.features(in: image, options: [CIDetectorImageOrientation: CGImagePropertyOrientation.down.rawValue]).first as? CIFaceFeature {
^~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:307:56: error: value of type 'T' has no member 'orientationTransform'
let bounds = faceFeature.bounds.applying(image.orientationTransform(for: orientation))
~~~~~ ^~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:309:37: error: value of type 'T' has no member 'oriented'
return .success(Value(image.oriented(orientation), bounds))
~~~~~ ^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:314:26: error: value of type 'T' has no member 'extent'
let size = image.extent.size
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:316:18: error: value of type 'T' has no member 'extent'
if image.extent.contains(boundingBox) {
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:324:37: error: cannot find 'CIVector' in scope
"inputTopLeft": CIVector(cgPoint: topLeft),
^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:325:38: error: cannot find 'CIVector' in scope
"inputTopRight": CIVector(cgPoint: topRight),
^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:326:40: error: cannot find 'CIVector' in scope
"inputBottomLeft": CIVector(cgPoint: bottomLeft),
^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:327:41: error: cannot find 'CIVector' in scope
"inputBottomRight": CIVector(cgPoint: bottomRight)
^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:322:37: error: value of type 'T' has no member 'cropped'
let outputImage = image.cropped(to: boundingBox)
~~~~~ ^~~~~~~
[7/12] Compiling Evil_macOS Utils.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:14:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func scaled(to size: CGSize) -> CGRect {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:23:5: warning: 'public' modifier is redundant for property declared in a public extension
public var area: CGFloat {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:29:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func scaled(to size: CGSize) -> CGPoint {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func resize(_ size: CGSize) -> CIImage {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:53:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func pixelBuffer(_ colorspace: CGColorSpace = CGColorSpaceCreateDeviceRGB()) -> CVPixelBuffer? {
^~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/12] Compiling Evil_macOS NSImage.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/NSImage.swift:13:9: warning: 'public' modifier is redundant for initializer declared in a public extension
public convenience init?(image: NSImage) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/NSImage.swift:20:9: warning: 'public' modifier is redundant for property declared in a public extension
public var cgImage: CGImage? {
^~~~~~~
[9/12] Compiling Evil_macOS AdaptiveThresholdFilter.swift
[10/12] Compiling Evil_macOS Error.swift
[11/12] Emitting module Evil_macOS
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:39: error: cannot find type 'CIImage' in scope
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/NSImage.swift:13:9: warning: 'public' modifier is redundant for initializer declared in a public extension
public convenience init?(image: NSImage) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/NSImage.swift:20:9: warning: 'public' modifier is redundant for property declared in a public extension
public var cgImage: CGImage? {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:98:11: error: cannot find type 'CIImage' in scope
extension CIImage: Preprocessable {}
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:13:30: error: cannot find type 'CIImage' in scope
public typealias Debugger = (CIImage) -> ()
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:20:49: error: cannot find type 'CIColor' in scope
public var colorMonochromeFilterInputColor: CIColor? // CIColorMonochrome kCIInputColorKey 参数
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:47:23: error: cannot find type 'CIImage' in scope
public let image: CIImage
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:50:27: error: cannot find type 'CIImage' in scope
public init (_ image: CIImage, _ bounds: CGRect) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:102:43: error: cannot find type 'CIImage' in scope
public var preprocessor: Preprocessor<CIImage> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:108:43: error: cannot find type 'CIImage' in scope
public var preprocessor: Preprocessor<CIImage> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:114:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func process(conf: Configuration = Configuration.`default`, debugger: Debugger? = nil) -> ProcessedResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:118:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func divideText(result resize: CGSize? = nil, adjustment: Bool = false, debugger: Debugger? = nil) -> DivideResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:122:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func correctionByFace() -> FaceCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:128:40: error: cannot find type 'CIImage' in scope
public extension Preprocessor where T: CIImage {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:138:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func process(conf: Configuration = Configuration.`default`, debugger: Debugger? = nil) -> ProcessedResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:188:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func divideText(result resize: CGSize? = nil, adjustment: Bool = true, debugger: Debugger? = nil) -> DivideResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:233:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func croppedMaxRectangle() -> CorpMaxRectangleResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:264:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func correctionByFace() -> FaceCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:312:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func perspectiveCorrection(boundingBox box: CGRect, topLeft: CGPoint, topRight: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint) -> PerspectiveCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:141:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func cropChineseIDCardNumberArea() -> Result<Value> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:150:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func cropChineseIDCardNumberArea() -> Value {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:14:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func scaled(to size: CGSize) -> CGRect {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:23:5: warning: 'public' modifier is redundant for property declared in a public extension
public var area: CGFloat {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:29:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func scaled(to size: CGSize) -> CGPoint {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func resize(_ size: CGSize) -> CIImage {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:53:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func pixelBuffer(_ colorspace: CGColorSpace = CGColorSpaceCreateDeviceRGB()) -> CVPixelBuffer? {
^~~~~~~
[12/12] Compiling Evil_macOS Evil.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:39: error: cannot find type 'CIImage' in scope
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version--423B1241ED78D482.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Emitting module Evil_macOS
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:39: error: cannot find type 'CIImage' in scope
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/NSImage.swift:13:9: warning: 'public' modifier is redundant for initializer declared in a public extension
public convenience init?(image: NSImage) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/NSImage.swift:20:9: warning: 'public' modifier is redundant for property declared in a public extension
public var cgImage: CGImage? {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:98:11: error: cannot find type 'CIImage' in scope
extension CIImage: Preprocessable {}
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:13:30: error: cannot find type 'CIImage' in scope
public typealias Debugger = (CIImage) -> ()
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:20:49: error: cannot find type 'CIColor' in scope
public var colorMonochromeFilterInputColor: CIColor? // CIColorMonochrome kCIInputColorKey 参数
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:47:23: error: cannot find type 'CIImage' in scope
public let image: CIImage
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:50:27: error: cannot find type 'CIImage' in scope
public init (_ image: CIImage, _ bounds: CGRect) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:102:43: error: cannot find type 'CIImage' in scope
public var preprocessor: Preprocessor<CIImage> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:108:43: error: cannot find type 'CIImage' in scope
public var preprocessor: Preprocessor<CIImage> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:114:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func process(conf: Configuration = Configuration.`default`, debugger: Debugger? = nil) -> ProcessedResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:118:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func divideText(result resize: CGSize? = nil, adjustment: Bool = false, debugger: Debugger? = nil) -> DivideResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:122:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func correctionByFace() -> FaceCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:128:40: error: cannot find type 'CIImage' in scope
public extension Preprocessor where T: CIImage {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:138:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func process(conf: Configuration = Configuration.`default`, debugger: Debugger? = nil) -> ProcessedResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:188:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func divideText(result resize: CGSize? = nil, adjustment: Bool = true, debugger: Debugger? = nil) -> DivideResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:233:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func croppedMaxRectangle() -> CorpMaxRectangleResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:264:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func correctionByFace() -> FaceCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:312:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func perspectiveCorrection(boundingBox box: CGRect, topLeft: CGPoint, topRight: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint) -> PerspectiveCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:141:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func cropChineseIDCardNumberArea() -> Result<Value> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:150:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func cropChineseIDCardNumberArea() -> Value {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:14:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func scaled(to size: CGSize) -> CGRect {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:23:5: warning: 'public' modifier is redundant for property declared in a public extension
public var area: CGFloat {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:29:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func scaled(to size: CGSize) -> CGPoint {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func resize(_ size: CGSize) -> CIImage {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Utils.swift:53:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func pixelBuffer(_ colorspace: CGColorSpace = CGColorSpaceCreateDeviceRGB()) -> CVPixelBuffer? {
^~~~~~~
[3/5] Compiling Evil_macOS Evil.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:39: error: cannot find type 'CIImage' in scope
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
[4/5] Compiling Evil_macOS Recognizer.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:141:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func cropChineseIDCardNumberArea() -> Result<Value> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:150:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func cropChineseIDCardNumberArea() -> Value {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:21:16: error: cannot find 'preprocessor' in scope
return preprocessor.croppedMaxRectangle()
^~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:13:30: error: cannot find type 'CIImage' in scope
public typealias Debugger = (CIImage) -> ()
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Recognizer.swift:133:56: error: value of type 'CIImage' has no member 'preprocessor'
if let images = recognizer.processor?(object)?.preprocessor.divideText().value?.map({ $0.image }) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Evil.swift:44:39: error: cannot find type 'CIImage' in scope
public func prediction(_ images: [CIImage]) throws -> [String?] {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:47:23: error: cannot find type 'CIImage' in scope
public let image: CIImage
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:50:27: error: cannot find type 'CIImage' in scope
public init (_ image: CIImage, _ bounds: CGRect) {
^~~~~~~
[5/5] Compiling Evil_macOS Preprocessor.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:98:11: error: cannot find type 'CIImage' in scope
extension CIImage: Preprocessable {}
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:13:30: error: cannot find type 'CIImage' in scope
public typealias Debugger = (CIImage) -> ()
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:20:49: error: cannot find type 'CIColor' in scope
public var colorMonochromeFilterInputColor: CIColor? // CIColorMonochrome kCIInputColorKey 参数
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:47:23: error: cannot find type 'CIImage' in scope
public let image: CIImage
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:50:27: error: cannot find type 'CIImage' in scope
public init (_ image: CIImage, _ bounds: CGRect) {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:102:43: error: cannot find type 'CIImage' in scope
public var preprocessor: Preprocessor<CIImage> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:108:43: error: cannot find type 'CIImage' in scope
public var preprocessor: Preprocessor<CIImage> {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:114:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func process(conf: Configuration = Configuration.`default`, debugger: Debugger? = nil) -> ProcessedResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:118:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func divideText(result resize: CGSize? = nil, adjustment: Bool = false, debugger: Debugger? = nil) -> DivideResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:122:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func correctionByFace() -> FaceCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:128:40: error: cannot find type 'CIImage' in scope
public extension Preprocessor where T: CIImage {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:138:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func process(conf: Configuration = Configuration.`default`, debugger: Debugger? = nil) -> ProcessedResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:188:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func divideText(result resize: CGSize? = nil, adjustment: Bool = true, debugger: Debugger? = nil) -> DivideResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:233:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func croppedMaxRectangle() -> CorpMaxRectangleResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:264:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func correctionByFace() -> FaceCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:312:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func perspectiveCorrection(boundingBox box: CGRect, topLeft: CGPoint, topRight: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint) -> PerspectiveCorrectionResult {
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:31:43: error: cannot find 'CIColor' in scope
colorMonochromeFilterInputColor = CIColor(red: 0.75, green: 0.75, blue: 0.75)
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:140:25: error: cannot find type 'CIImage' in scope
var inputImage: CIImage = self.image
^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:145:86: error: cannot find 'kCIInputColorKey' in scope
inputImage = inputImage.applyingFilter("CIColorMonochrome", parameters: [kCIInputColorKey: color])
^~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:151:13: error: cannot find 'kCIInputSaturationKey' in scope
kCIInputSaturationKey: conf.colorControls.0,
^~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:152:13: error: cannot find 'kCIInputBrightnessKey' in scope
kCIInputBrightnessKey: conf.colorControls.1,
^~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:153:13: error: cannot find 'kCIInputContrastKey' in scope
kCIInputContrastKey: conf.colorControls.2])
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:157:81: error: cannot find 'kCIInputEVKey' in scope
inputImage = inputImage.applyingFilter("CIExposureAdjust", parameters: [kCIInputEVKey: conf.exposureAdjustEV])
^~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:174:61: error: cannot find 'kCIInputRadiusKey' in scope
parameters: [kCIInputRadiusKey: conf.unsharpMask.0, kCIInputIntensityKey: conf.unsharpMask.1])
^~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:174:100: error: cannot find 'kCIInputIntensityKey' in scope
parameters: [kCIInputRadiusKey: conf.unsharpMask.0, kCIInputIntensityKey: conf.unsharpMask.1])
^~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:193:54: error: cannot convert value of type 'T' to expected argument type 'CIImage'
let handler = VNImageRequestHandler(ciImage: image, options: [:])
^
as! CIImage
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:196:64: warning: conditional downcast from '[VNTextObservation]?' to '[VNTextObservation]' does nothing
guard let textObservations = detectTextRequest.results as? [VNTextObservation] else {
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:208:61: error: value of type 'T' has no member 'extent'
let rect = c.boundingBox.scaled(to: ciImage.extent.size)
~~~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:210:37: error: value of type 'T' has no member 'cropped'
var image = ciImage.cropped(to: rect)
~~~~~~~ ^~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:236:54: error: cannot convert value of type 'T' to expected argument type 'CIImage'
let handler = VNImageRequestHandler(ciImage: image, options: [:])
^
as! CIImage
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:244:50: warning: conditional downcast from '[VNRectangleObservation]?' to '[VNRectangleObservation]' does nothing
guard let observations = request.results as? [VNRectangleObservation] else {
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:254:22: error: value of type 'T' has no member 'preprocessor'
return image.preprocessor.perspectiveCorrection(boundingBox: maxObservation.boundingBox,
~~~~~ ^~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:24: error: cannot find 'CIDetector' in scope
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:43: error: cannot find 'CIDetectorTypeFace' in scope
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:87: error: cannot find 'CIDetectorAccuracy' in scope
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:107: error: cannot find 'CIDetectorAccuracyLow' in scope
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:266:72: error: 'nil' requires a contextual type
let detector = CIDetector(ofType: CIDetectorTypeFace, context: nil, options: [CIDetectorAccuracy: CIDetectorAccuracyLow])!
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:268:61: error: value of type 'T' has no member 'extent'
var orientation: CGImagePropertyOrientation = image.extent.width > image.extent.height ? .up : .right
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:268:82: error: value of type 'T' has no member 'extent'
var orientation: CGImagePropertyOrientation = image.extent.width > image.extent.height ? .up : .right
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:270:67: error: cannot find 'CIDetectorImageOrientation' in scope
var faceFeatures = detector.features(in: image, options: [CIDetectorImageOrientation: orientation.rawValue])
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:273:70: error: cannot find 'CIDetectorImageOrientation' in scope
let newFeatures = detector.features(in: image, options: [CIDetectorImageOrientation: CGImagePropertyOrientation.left.rawValue])
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:287:67: error: cannot find 'CIDetectorImageOrientation' in scope
faceFeatures = detector.features(in: image, options: [CIDetectorImageOrientation: orientation.rawValue])
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:290:56: error: cannot find type 'CIFaceFeature' in scope
guard var faceFeature = faceFeatures.first as? CIFaceFeature,
^~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:300:68: error: value of type 'T' has no member 'extent'
if orientation == .up && faceFeature.bounds.height > image.extent.height * 0.4 {
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:301:66: error: cannot find 'CIDetectorImageOrientation' in scope
if let newF = detector.features(in: image, options: [CIDetectorImageOrientation: CGImagePropertyOrientation.down.rawValue]).first as? CIFaceFeature {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:301:147: error: cannot find type 'CIFaceFeature' in scope
if let newF = detector.features(in: image, options: [CIDetectorImageOrientation: CGImagePropertyOrientation.down.rawValue]).first as? CIFaceFeature {
^~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:307:56: error: value of type 'T' has no member 'orientationTransform'
let bounds = faceFeature.bounds.applying(image.orientationTransform(for: orientation))
~~~~~ ^~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:309:37: error: value of type 'T' has no member 'oriented'
return .success(Value(image.oriented(orientation), bounds))
~~~~~ ^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:314:26: error: value of type 'T' has no member 'extent'
let size = image.extent.size
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:316:18: error: value of type 'T' has no member 'extent'
if image.extent.contains(boundingBox) {
~~~~~ ^~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:324:37: error: cannot find 'CIVector' in scope
"inputTopLeft": CIVector(cgPoint: topLeft),
^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:325:38: error: cannot find 'CIVector' in scope
"inputTopRight": CIVector(cgPoint: topRight),
^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:326:40: error: cannot find 'CIVector' in scope
"inputBottomLeft": CIVector(cgPoint: bottomLeft),
^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:327:41: error: cannot find 'CIVector' in scope
"inputBottomRight": CIVector(cgPoint: bottomRight)
^~~~~~~~
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/Preprocessor.swift:322:37: error: value of type 'T' has no member 'cropped'
let outputImage = image.cropped(to: boundingBox)
~~~~~ ^~~~~~~
error: fatalError
BUILD FAILURE 5.10 macosSpm