Build Information
Failed to build ImageOCRUI, reference main (d97b08
), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 15:50:37 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/fatihdurmaz/ImageOCRUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling ImageOCRUI ScannedText.swift
[4/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 | }
[5/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: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: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: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 | }
[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: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: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: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.2 macosSpm