Build Information
Failed to build ImageOCRUI, reference main (d97b08
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 22:01:02 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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",
"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",
"dependencies": [
]
}
]
}
Fetching https://github.com/fatihdurmaz/ImageOCRUI.git
[1/50] Fetching imageocrui
Fetched https://github.com/fatihdurmaz/ImageOCRUI.git from cache (0.58s)
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.1
Building package at path: $PWD
https://github.com/fatihdurmaz/ImageOCRUI.git
https://github.com/fatihdurmaz/ImageOCRUI.git
{
"dependencies" : [
],
"manifest_display_name" : "ImageOCRUI",
"name" : "ImageOCRUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "ImageOCRUI",
"targets" : [
"ImageOCRUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ImageOCRUITests",
"module_type" : "SwiftTarget",
"name" : "ImageOCRUITests",
"path" : "Tests/ImageOCRUITests",
"sources" : [
"ImageOCRUITests.swift"
],
"target_dependencies" : [
"ImageOCRUI"
],
"type" : "test"
},
{
"c99name" : "ImageOCRUI",
"module_type" : "SwiftTarget",
"name" : "ImageOCRUI",
"path" : "Sources/ImageOCRUI",
"product_memberships" : [
"ImageOCRUI"
],
"sources" : [
"ScannedText.swift",
"ScannerView.swift",
"TextRecognizer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling ImageOCRUI ScannedText.swift
[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 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/5] 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 | }
[3/5] 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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Compiling ImageOCRUI ScannedText.swift
[5/5] 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 | }
BUILD FAILURE 6.1 macosSpm