The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ImageOCRUI, reference main (d97b08), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 16:31:13 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fatihdurmaz/ImageOCRUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fatihdurmaz/ImageOCRUI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d97b084 Create LICENSE
Cloned https://github.com/fatihdurmaz/ImageOCRUI.git
Revision (git rev-parse @):
d97b084385f99244089922ed376f5b61ba9d9dcb
SUCCESS checkout https://github.com/fatihdurmaz/ImageOCRUI.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "imageocrui",
      "name": "ImageOCRUI",
      "url": "https://github.com/fatihdurmaz/ImageOCRUI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ImageOCRUI",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/fatihdurmaz/ImageOCRUI.git
[1/50] Fetching imageocrui
Fetched https://github.com/fatihdurmaz/ImageOCRUI.git from cache (0.67s)
Creating working copy for https://github.com/fatihdurmaz/ImageOCRUI.git
Working copy of https://github.com/fatihdurmaz/ImageOCRUI.git resolved at main (d97b084)
warning: '.resolve-product-dependencies': dependency 'imageocrui' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/fatihdurmaz/ImageOCRUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling ImageOCRUI ScannedText.swift
[4/6] Emitting module ImageOCRUI
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:18:45: error: cannot find type 'VNDocumentCameraViewController' in scope
16 |     }
17 |
18 |     public typealias UIViewControllerType = VNDocumentCameraViewController
   |                                             `- error: cannot find type 'VNDocumentCameraViewController' in scope
19 |
20 |     public func makeUIViewController(context: UIViewControllerRepresentableContext<ScannerView>) -> VNDocumentCameraViewController {
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:20:101: error: cannot find type 'VNDocumentCameraViewController' in scope
18 |     public typealias UIViewControllerType = VNDocumentCameraViewController
19 |
20 |     public func makeUIViewController(context: UIViewControllerRepresentableContext<ScannerView>) -> VNDocumentCameraViewController {
   |                                                                                                     `- error: cannot find type 'VNDocumentCameraViewController' in scope
21 |         let viewController = VNDocumentCameraViewController()
22 |         viewController.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:20:47: error: cannot find type 'UIViewControllerRepresentableContext' in scope
18 |     public typealias UIViewControllerType = VNDocumentCameraViewController
19 |
20 |     public func makeUIViewController(context: UIViewControllerRepresentableContext<ScannerView>) -> VNDocumentCameraViewController {
   |                                               `- error: cannot find type 'UIViewControllerRepresentableContext' in scope
21 |         let viewController = VNDocumentCameraViewController()
22 |         viewController.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:26:60: error: cannot find type 'VNDocumentCameraViewController' in scope
24 |     }
25 |
26 |     public func updateUIViewController(_ uiViewController: VNDocumentCameraViewController, context: UIViewControllerRepresentableContext<ScannerView>) {}
   |                                                            `- error: cannot find type 'VNDocumentCameraViewController' in scope
27 |
28 |     public func makeCoordinator() -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:26:101: error: cannot find type 'UIViewControllerRepresentableContext' in scope
24 |     }
25 |
26 |     public func updateUIViewController(_ uiViewController: VNDocumentCameraViewController, context: UIViewControllerRepresentableContext<ScannerView>) {}
   |                                                                                                     `- error: cannot find type 'UIViewControllerRepresentableContext' in scope
27 |
28 |     public func makeCoordinator() -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:32:47: error: cannot find type 'VNDocumentCameraViewControllerDelegate' in scope
30 |     }
31 |
32 |     final public class Coordinator: NSObject, VNDocumentCameraViewControllerDelegate {
   |                                               `- error: cannot find type 'VNDocumentCameraViewControllerDelegate' in scope
33 |         public let completionHandler: ([String]?) -> Void
34 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:39:64: error: cannot find type 'VNDocumentCameraViewController' in scope
37 |         }
38 |
39 |         public func documentCameraViewController(_ controller: VNDocumentCameraViewController, didFinishWith scan: VNDocumentCameraScan) {
   |                                                                `- error: cannot find type 'VNDocumentCameraViewController' in scope
40 |             print("Document camera view controller did finish with ", scan)
41 |             let recognizer = TextRecognizer(cameraScan: scan)
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:39:116: error: cannot find type 'VNDocumentCameraScan' in scope
37 |         }
38 |
39 |         public func documentCameraViewController(_ controller: VNDocumentCameraViewController, didFinishWith scan: VNDocumentCameraScan) {
   |                                                                                                                    `- error: cannot find type 'VNDocumentCameraScan' in scope
40 |             print("Document camera view controller did finish with ", scan)
41 |             let recognizer = TextRecognizer(cameraScan: scan)
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:45:73: error: cannot find type 'VNDocumentCameraViewController' in scope
43 |         }
44 |
45 |         public func documentCameraViewControllerDidCancel(_ controller: VNDocumentCameraViewController) {
   |                                                                         `- error: cannot find type 'VNDocumentCameraViewController' in scope
46 |             completionHandler(nil)
47 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:49:64: error: cannot find type 'VNDocumentCameraViewController' in scope
47 |         }
48 |
49 |         public func documentCameraViewController(_ controller: VNDocumentCameraViewController, didFailWithError error: Error) {
   |                                                                `- error: cannot find type 'VNDocumentCameraViewController' in scope
50 |             print("Document camera view controller did finish with error ", error)
51 |             completionHandler(nil)
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:11:28: error: cannot find type 'UIViewControllerRepresentable' in scope
 9 | import SwiftUI
10 |
11 | public struct ScannerView: UIViewControllerRepresentable {
   |                            `- error: cannot find type 'UIViewControllerRepresentable' in scope
12 |     public let completionHandler: ([String]?) -> Void
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/TextRecognizer.swift:13:21: error: cannot find type 'VNDocumentCameraScan' in scope
11 |
12 | final class TextRecognizer {
13 |     let cameraScan: VNDocumentCameraScan
   |                     `- error: cannot find type 'VNDocumentCameraScan' in scope
14 |
15 |     init(cameraScan: VNDocumentCameraScan) {
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/TextRecognizer.swift:15:22: error: cannot find type 'VNDocumentCameraScan' in scope
13 |     let cameraScan: VNDocumentCameraScan
14 |
15 |     init(cameraScan: VNDocumentCameraScan) {
   |                      `- error: cannot find type 'VNDocumentCameraScan' in scope
16 |         self.cameraScan = cameraScan
17 |     }
[5/6] Compiling ImageOCRUI TextRecognizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/TextRecognizer.swift:13:21: error: cannot find type 'VNDocumentCameraScan' in scope
11 |
12 | final class TextRecognizer {
13 |     let cameraScan: VNDocumentCameraScan
   |                     `- error: cannot find type 'VNDocumentCameraScan' in scope
14 |
15 |     init(cameraScan: VNDocumentCameraScan) {
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/TextRecognizer.swift:15:22: error: cannot find type 'VNDocumentCameraScan' in scope
13 |     let cameraScan: VNDocumentCameraScan
14 |
15 |     init(cameraScan: VNDocumentCameraScan) {
   |                      `- error: cannot find type 'VNDocumentCameraScan' in scope
16 |         self.cameraScan = cameraScan
17 |     }
[6/6] Compiling ImageOCRUI ScannerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:18:45: error: cannot find type 'VNDocumentCameraViewController' in scope
16 |     }
17 |
18 |     public typealias UIViewControllerType = VNDocumentCameraViewController
   |                                             `- error: cannot find type 'VNDocumentCameraViewController' in scope
19 |
20 |     public func makeUIViewController(context: UIViewControllerRepresentableContext<ScannerView>) -> VNDocumentCameraViewController {
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:20:101: error: cannot find type 'VNDocumentCameraViewController' in scope
18 |     public typealias UIViewControllerType = VNDocumentCameraViewController
19 |
20 |     public func makeUIViewController(context: UIViewControllerRepresentableContext<ScannerView>) -> VNDocumentCameraViewController {
   |                                                                                                     `- error: cannot find type 'VNDocumentCameraViewController' in scope
21 |         let viewController = VNDocumentCameraViewController()
22 |         viewController.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:20:47: error: cannot find type 'UIViewControllerRepresentableContext' in scope
18 |     public typealias UIViewControllerType = VNDocumentCameraViewController
19 |
20 |     public func makeUIViewController(context: UIViewControllerRepresentableContext<ScannerView>) -> VNDocumentCameraViewController {
   |                                               `- error: cannot find type 'UIViewControllerRepresentableContext' in scope
21 |         let viewController = VNDocumentCameraViewController()
22 |         viewController.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:26:60: error: cannot find type 'VNDocumentCameraViewController' in scope
24 |     }
25 |
26 |     public func updateUIViewController(_ uiViewController: VNDocumentCameraViewController, context: UIViewControllerRepresentableContext<ScannerView>) {}
   |                                                            `- error: cannot find type 'VNDocumentCameraViewController' in scope
27 |
28 |     public func makeCoordinator() -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:26:101: error: cannot find type 'UIViewControllerRepresentableContext' in scope
24 |     }
25 |
26 |     public func updateUIViewController(_ uiViewController: VNDocumentCameraViewController, context: UIViewControllerRepresentableContext<ScannerView>) {}
   |                                                                                                     `- error: cannot find type 'UIViewControllerRepresentableContext' in scope
27 |
28 |     public func makeCoordinator() -> Coordinator {
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:32:47: error: cannot find type 'VNDocumentCameraViewControllerDelegate' in scope
30 |     }
31 |
32 |     final public class Coordinator: NSObject, VNDocumentCameraViewControllerDelegate {
   |                                               `- error: cannot find type 'VNDocumentCameraViewControllerDelegate' in scope
33 |         public let completionHandler: ([String]?) -> Void
34 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:39:64: error: cannot find type 'VNDocumentCameraViewController' in scope
37 |         }
38 |
39 |         public func documentCameraViewController(_ controller: VNDocumentCameraViewController, didFinishWith scan: VNDocumentCameraScan) {
   |                                                                `- error: cannot find type 'VNDocumentCameraViewController' in scope
40 |             print("Document camera view controller did finish with ", scan)
41 |             let recognizer = TextRecognizer(cameraScan: scan)
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:39:116: error: cannot find type 'VNDocumentCameraScan' in scope
37 |         }
38 |
39 |         public func documentCameraViewController(_ controller: VNDocumentCameraViewController, didFinishWith scan: VNDocumentCameraScan) {
   |                                                                                                                    `- error: cannot find type 'VNDocumentCameraScan' in scope
40 |             print("Document camera view controller did finish with ", scan)
41 |             let recognizer = TextRecognizer(cameraScan: scan)
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:45:73: error: cannot find type 'VNDocumentCameraViewController' in scope
43 |         }
44 |
45 |         public func documentCameraViewControllerDidCancel(_ controller: VNDocumentCameraViewController) {
   |                                                                         `- error: cannot find type 'VNDocumentCameraViewController' in scope
46 |             completionHandler(nil)
47 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:49:64: error: cannot find type 'VNDocumentCameraViewController' in scope
47 |         }
48 |
49 |         public func documentCameraViewController(_ controller: VNDocumentCameraViewController, didFailWithError error: Error) {
   |                                                                `- error: cannot find type 'VNDocumentCameraViewController' in scope
50 |             print("Document camera view controller did finish with error ", error)
51 |             completionHandler(nil)
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:11:28: error: cannot find type 'UIViewControllerRepresentable' in scope
 9 | import SwiftUI
10 |
11 | public struct ScannerView: UIViewControllerRepresentable {
   |                            `- error: cannot find type 'UIViewControllerRepresentable' in scope
12 |     public let completionHandler: ([String]?) -> Void
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/ScannerView.swift:21:30: error: cannot find 'VNDocumentCameraViewController' in scope
19 |
20 |     public func makeUIViewController(context: UIViewControllerRepresentableContext<ScannerView>) -> VNDocumentCameraViewController {
21 |         let viewController = VNDocumentCameraViewController()
   |                              `- error: cannot find 'VNDocumentCameraViewController' in scope
22 |         viewController.delegate = context.coordinator
23 |         return viewController
/Users/admin/builder/spi-builder-workspace/Sources/ImageOCRUI/TextRecognizer.swift:15:22: error: cannot find type 'VNDocumentCameraScan' in scope
13 |     let cameraScan: VNDocumentCameraScan
14 |
15 |     init(cameraScan: VNDocumentCameraScan) {
   |                      `- error: cannot find type 'VNDocumentCameraScan' in scope
16 |         self.cameraScan = cameraScan
17 |     }
BUILD FAILURE 6.3 macosSpm