The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftText, reference 1.1.8 (080dbd), with Swift 6.1 for macOS (SPM) on 20 Apr 2026 12:46:11 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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/Cocoanetics/SwiftText.git
Reference: 1.1.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Cocoanetics/SwiftText
 * tag               1.1.8      -> FETCH_HEAD
HEAD is now at 080dbd4 fix fenced code blocks #14
Cloned https://github.com/Cocoanetics/SwiftText.git
Revision (git rev-parse @):
080dbd4440b878de439fcc40c8b613683bf1afb2
SUCCESS checkout https://github.com/Cocoanetics/SwiftText.git at 1.1.8
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Cocoanetics/SwiftText.git
https://github.com/Cocoanetics/SwiftText.git
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "zipfoundation",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.9.12",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/weichsel/ZIPFoundation.git"
    }
  ],
  "manifest_display_name" : "SwiftText",
  "name" : "SwiftText",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftText",
      "targets" : [
        "SwiftText"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftTextCore",
      "targets" : [
        "SwiftTextCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftTextDOCX",
      "targets" : [
        "SwiftTextDOCX"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftTextHTML",
      "targets" : [
        "SwiftTextHTML"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftTextOCR",
      "targets" : [
        "SwiftTextOCR"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftTextPDF",
      "targets" : [
        "SwiftTextPDF"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "swifttext",
      "targets" : [
        "SwiftTextCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "VersionGeneratorPlugin",
      "module_type" : "PluginTarget",
      "name" : "VersionGeneratorPlugin",
      "path" : "Plugins/VersionGeneratorPlugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "swifttext"
      ],
      "sources" : [
        "VersionGeneratorPlugin.swift"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "SwiftTextPDF",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextPDF",
      "path" : "Sources/SwiftTextPDF",
      "product_memberships" : [
        "SwiftText",
        "SwiftTextPDF",
        "swifttext"
      ],
      "sources" : [
        "PDFDocument+Text.swift",
        "PDFPage+DocumentBlocks.swift",
        "PDFPage+DocumentSemantics.swift",
        "PDFPage+OCR.swift"
      ],
      "target_dependencies" : [
        "SwiftTextOCR"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftTextOCRTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextOCRTests",
      "path" : "Tests/SwiftTextOCRTests",
      "sources" : [
        "SwiftTextOCRTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTextOCR",
        "SwiftTextPDF"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTextOCR",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextOCR",
      "path" : "Sources/SwiftTextOCR",
      "product_memberships" : [
        "SwiftText",
        "SwiftTextOCR",
        "SwiftTextPDF",
        "swifttext"
      ],
      "sources" : [
        "CGImage+OCR.swift",
        "DocumentBlock.swift",
        "DocumentBlockExtraction.swift",
        "DocumentBlockMarkdown.swift",
        "DocumentBlockTranscript.swift",
        "DocumentImage.swift",
        "DocumentSemantics.swift",
        "OCRError.swift",
        "TextLine.swift",
        "TextLineSemanticComposer.swift",
        "UIImage+OCR.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftTextHTMLTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextHTMLTests",
      "path" : "Tests/SwiftTextHTMLTests",
      "sources" : [
        "HTMLBlockquoteConversionTests.swift",
        "HTMLDeepWrapperTests.swift",
        "HTMLDocumentTests.swift",
        "HTMLMalformedTrailingContentTests.swift",
        "HTMLParserEventStreamTests.swift",
        "HTMLTableConversionTests.swift",
        "MarkdownToHTMLTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTextHTML",
        "SwiftTextCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTextHTML",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextHTML",
      "path" : "Sources/SwiftTextHTML",
      "product_memberships" : [
        "SwiftText",
        "SwiftTextHTML",
        "swifttext"
      ],
      "sources" : [
        "DOMElement.swift",
        "DOMNode.swift",
        "DOMText.swift",
        "DomBuilder.swift",
        "Exports.swift",
        "HTMLDocument.swift",
        "HTMLToMarkdown.swift",
        "MarkdownToHTML.swift",
        "String+Charset.swift",
        "String+Markdown.swift",
        "WebKitBrowser.swift"
      ],
      "target_dependencies" : [
        "HTMLParser",
        "CHTMLParser"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftTextDOCXTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextDOCXTests",
      "path" : "Tests/SwiftTextDOCXTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftTextDOCXTests/Resources/Styles.docx",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "DocxParsingTests.swift",
        "DocxWriterTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTextDOCX"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTextDOCX",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextDOCX",
      "path" : "Sources/SwiftTextDOCX",
      "product_dependencies" : [
        "ZIPFoundation"
      ],
      "product_memberships" : [
        "SwiftText",
        "SwiftTextDOCX",
        "swifttext"
      ],
      "sources" : [
        "DocxDocument.swift",
        "DocxFile.swift",
        "DocxParser.swift",
        "DocxWriter.swift",
        "MarkdownToDocx.swift",
        "ZipUtilities.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftTextCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextCoreTests",
      "path" : "Tests/SwiftTextCoreTests",
      "sources" : [
        "UnicodeAbuseSanitizerTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTextCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTextCore",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextCore",
      "path" : "Sources/SwiftTextCore",
      "product_memberships" : [
        "SwiftTextCore"
      ],
      "sources" : [
        "UnicodeAbuseSanitizer.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftTextCLI",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTextCLI",
      "path" : "Sources/SwiftTextCLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "swifttext"
      ],
      "sources" : [
        "OverlayRenderer.swift",
        "PDFCommand.swift",
        "RenderCommand.swift",
        "SwiftTextCLI.swift"
      ],
      "target_dependencies" : [
        "SwiftTextHTML",
        "SwiftTextOCR",
        "SwiftTextPDF",
        "SwiftTextDOCX",
        "VersionGeneratorPlugin"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SwiftText",
      "module_type" : "SwiftTarget",
      "name" : "SwiftText",
      "path" : "Sources/SwiftText",
      "product_memberships" : [
        "SwiftText"
      ],
      "sources" : [
        "SwiftText.swift"
      ],
      "target_dependencies" : [
        "SwiftTextDOCX",
        "SwiftTextHTML",
        "SwiftTextOCR",
        "SwiftTextPDF"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HTMLParser",
      "module_type" : "SwiftTarget",
      "name" : "HTMLParser",
      "path" : "Sources/HTMLParser",
      "product_memberships" : [
        "SwiftText",
        "SwiftTextHTML",
        "swifttext"
      ],
      "sources" : [
        "HTMLParser.swift",
        "HTMLParserDelegate.swift",
        "HTMLParserDelegateAdapter.swift",
        "HTMLParserEvent.swift"
      ],
      "target_dependencies" : [
        "CHTMLParser"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CHTMLParser",
      "module_type" : "ClangTarget",
      "name" : "CHTMLParser",
      "path" : "Sources/CHTMLParser",
      "product_memberships" : [
        "SwiftText",
        "SwiftTextHTML",
        "swifttext"
      ],
      "sources" : [
        "HTMLParserBridge.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
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
[1/1] Compiling plugin VersionGeneratorPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/21] Write sources
[6/21] Copying PrivacyInfo.xcprivacy
[6/21] Write sources
[7/21] Write swifttext-entitlement.plist
[10/21] Write sources
[16/21] Write swift-version-2F0A5646E1D333AE.txt
[17/57] Compiling CHTMLParser HTMLParserBridge.c
[19/62] Emitting module ArgumentParserToolInfo
[20/62] Compiling ArgumentParserToolInfo ToolInfo.swift
[21/109] Emitting module ArgumentParser
[22/114] Compiling ArgumentParser CommandConfiguration.swift
[23/114] Compiling ArgumentParser CommandGroup.swift
[24/114] Compiling ArgumentParser EnumerableFlag.swift
[25/114] Compiling ArgumentParser ExpressibleByArgument.swift
[26/114] Compiling ArgumentParser ParsableArguments.swift
[27/114] Compiling ArgumentParser CodingKeyValidator.swift
[28/114] Compiling ArgumentParser NonsenseFlagsValidator.swift
[29/114] Compiling ArgumentParser ParsableArgumentsValidation.swift
[30/114] Compiling ArgumentParser PositionalArgumentsValidator.swift
[31/114] Compiling ArgumentParser UniqueNamesValidator.swift
[32/114] Compiling ArgumentParser NameSpecification.swift
[33/114] Compiling ArgumentParser Option.swift
[34/114] Compiling ArgumentParser OptionGroup.swift
[35/114] Compiling ArgumentParser ParentCommand.swift
[36/114] Compiling ArgumentParser AsyncParsableCommand.swift
[37/114] Compiling ArgumentParser Platform.swift
[38/114] Compiling ArgumentParser SequenceExtensions.swift
[39/114] Compiling ArgumentParser StringExtensions.swift
[40/114] Compiling ArgumentParser SwiftExtensions.swift
[41/114] Compiling ArgumentParser Tree.swift
[42/114] Compiling ArgumentParser BashCompletionsGenerator.swift
[43/114] Compiling ArgumentParser CompletionsGenerator.swift
[44/114] Compiling ArgumentParser FishCompletionsGenerator.swift
[45/114] Compiling ArgumentParser ZshCompletionsGenerator.swift
[46/114] Compiling ArgumentParser Argument.swift
[47/114] Compiling ArgumentParser ArgumentDiscussion.swift
[48/114] Compiling ArgumentParser ArgumentHelp.swift
[49/114] Compiling ArgumentParser ArgumentVisibility.swift
[50/114] Compiling ArgumentParser CompletionKind.swift
[51/114] Compiling ArgumentParser Errors.swift
[52/114] Compiling ArgumentParser Flag.swift
[53/114] Compiling ArgumentParser InputKey.swift
[54/114] Compiling ArgumentParser InputOrigin.swift
[55/114] Compiling ArgumentParser Name.swift
[56/114] Compiling ArgumentParser Parsed.swift
[57/114] Compiling ArgumentParser ParsedValues.swift
[58/114] Compiling ArgumentParser ParserError.swift
[59/114] Compiling ArgumentParser SplitArguments.swift
[60/114] Compiling ArgumentParser DumpHelpGenerator.swift
[61/114] Compiling ArgumentParser HelpCommand.swift
[62/114] Compiling ArgumentParser HelpGenerator.swift
[63/114] Compiling ArgumentParser ParsableCommand.swift
[64/114] Compiling ArgumentParser ArgumentDecoder.swift
[65/114] Compiling ArgumentParser ArgumentDefinition.swift
[66/114] Compiling ArgumentParser ArgumentSet.swift
[67/114] Compiling ArgumentParser CommandParser.swift
[68/114] Compiling HTMLParser HTMLParserDelegateAdapter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[69/114] Compiling HTMLParser HTMLParserEvent.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[70/114] Emitting module HTMLParser
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[71/114] Compiling HTMLParser HTMLParserDelegate.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[72/114] Emitting module SwiftTextCore
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[73/114] Compiling SwiftTextCore UnicodeAbuseSanitizer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[74/114] Emitting module ZIPFoundation
[81/114] Compiling HTMLParser HTMLParser.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[88/116] Compiling ArgumentParser MessageInfo.swift
[89/116] Compiling ArgumentParser UsageGenerator.swift
[91/116] Compiling ArgumentParser CollectionExtensions.swift
[92/116] Compiling ArgumentParser Foundation.swift
[93/116] Compiling ArgumentParser Mutex.swift
[101/127] Compiling ZIPFoundation URL+ZIP.swift
[102/127] Compiling ZIPFoundation resource_bundle_accessor.swift
[103/134] Compiling SwiftTextDOCX ZipUtilities.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[104/134] Compiling SwiftTextDOCX MarkdownToDocx.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[105/134] Compiling SwiftTextDOCX DocxParser.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[106/134] Compiling SwiftTextDOCX DocxFile.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[107/134] Compiling SwiftTextDOCX DocxDocument.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[108/134] Emitting module SwiftTextDOCX
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[109/134] Compiling SwiftTextDOCX DocxWriter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[110/134] Compiling SwiftTextOCR TextLineSemanticComposer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[111/134] Compiling SwiftTextOCR TextLine.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[112/135] Compiling SwiftTextOCR UIImage+OCR.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[113/135] Compiling SwiftTextOCR DocumentSemantics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentSemantics.swift:189:16: error: cannot find 'RecognizeDocumentsRequest' in scope
187 | public func documentSemantics(from cgImage: CGImage, applyPostProcessing: Bool = true) async throws -> DocumentSemantics {
188 | 	let referenceSize = CGSize(width: CGFloat(cgImage.width), height: CGFloat(cgImage.height))
189 | 	let request = RecognizeDocumentsRequest()
    |                `- error: cannot find 'RecognizeDocumentsRequest' in scope
190 | 	let observations = try await request.perform(on: cgImage, orientation: nil)
191 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentSemantics.swift:190:73: error: 'nil' requires a contextual type
188 | 	let referenceSize = CGSize(width: CGFloat(cgImage.width), height: CGFloat(cgImage.height))
189 | 	let request = RecognizeDocumentsRequest()
190 | 	let observations = try await request.perform(on: cgImage, orientation: nil)
    |                                                                         `- error: 'nil' requires a contextual type
191 |
192 | 	guard let document = observations.first?.document else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:90:47: error: cannot find type 'DocumentObservation' in scope
 88 | 	}
 89 |
 90 | 	func extractBlocksWithImages(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> (blocks: [DocumentBlock], images: [DocumentImage]) {
    |                                               `- error: cannot find type 'DocumentObservation' in scope
 91 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 92 | 		var usedOCRLineIDs = Set<Int>()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[114/135] Compiling SwiftTextOCR OCRError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[115/135] Compiling SwiftTextOCR DocumentImage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[116/135] Compiling SwiftTextOCR DocumentBlockTranscript.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[117/135] Compiling SwiftTextOCR DocumentBlockMarkdown.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[118/135] Emitting module SwiftTextOCR
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:71:37: error: cannot find type 'DocumentObservation' in scope
 69 | 	}
 70 |
 71 | 	func extractBlocks(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> [DocumentBlock] {
    |                                     `- error: cannot find type 'DocumentObservation' in scope
 72 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 73 | 		var usedOCRLineIDs = Set<Int>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:90:47: error: cannot find type 'DocumentObservation' in scope
 88 | 	}
 89 |
 90 | 	func extractBlocksWithImages(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> (blocks: [DocumentBlock], images: [DocumentImage]) {
    |                                               `- error: cannot find type 'DocumentObservation' in scope
 91 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 92 | 		var usedOCRLineIDs = Set<Int>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:110:54: error: cannot find type 'DocumentObservation' in scope
108 | 	}
109 |
110 | 	private func gatherStructuredBlocks(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock] {
    |                                                      `- error: cannot find type 'DocumentObservation' in scope
111 | 		var blocks = [DocumentBlock]()
112 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:147:40: error: cannot find type 'DocumentObservation' in scope
145 | 	}
146 |
147 | 	private func makeParagraph(from text: DocumentObservation.Container.Text, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Paragraph? {
    |                                        `- error: cannot find type 'DocumentObservation' in scope
148 | 		let trimmed = text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
149 | 		let rect = text.boundingRegion.rect(in: pageSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:175:35: error: cannot find type 'DocumentObservation' in scope
173 | 	}
174 |
175 | 	private func makeList(from list: DocumentObservation.Container.List, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.List {
    |                                   `- error: cannot find type 'DocumentObservation' in scope
176 | 		var items = [DocumentBlock.List.Item]()
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:226:37: error: cannot find type 'DocumentObservation' in scope
224 | 	}
225 |
226 | 	private func makeTable(from table: DocumentObservation.Container.Table, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Table {
    |                                     `- error: cannot find type 'DocumentObservation' in scope
227 | 		let rows: [[DocumentBlock.Table.Cell]] = table.rows.map { row in
228 | 			row.map { cell in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:246:42: error: cannot find type 'DocumentObservation' in scope
244 | 	}
245 |
246 | 	private func paragraphs(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock.Paragraph] {
    |                                          `- error: cannot find type 'DocumentObservation' in scope
247 | 		if container.paragraphs.isEmpty {
248 | 			let trimmed = container.text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:257:46: error: cannot find type 'DocumentObservation' in scope
255 | 	}
256 |
257 | 	private func resolveMarker(from markerType: DocumentObservation.Container.List.Marker?, fallback: String) -> DocumentBlock.List.Marker {
    |                                              `- error: cannot find type 'DocumentObservation' in scope
258 | 		guard let markerType else {
259 | 			return .custom(fallback)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:866:26: error: no type named 'NormalizedRegion' in module 'Vision'
864 |
865 | @available(iOS 26.0, tvOS 26.0, macOS 26.0, visionOS 26.0, *)
866 | private extension Vision.NormalizedRegion {
    |                          `- error: no type named 'NormalizedRegion' in module 'Vision'
867 | 	func rect(in pageSize: CGSize) -> CGRect {
868 | 		convertNormalizedBoundingBox(normalizedPath.boundingBox, in: pageSize)
[119/135] Compiling SwiftTextHTML DOMElement.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[120/135] Compiling SwiftTextHTML DOMNode.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[121/135] Compiling SwiftTextOCR DocumentBlockExtraction.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:71:37: error: cannot find type 'DocumentObservation' in scope
 69 | 	}
 70 |
 71 | 	func extractBlocks(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> [DocumentBlock] {
    |                                     `- error: cannot find type 'DocumentObservation' in scope
 72 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 73 | 		var usedOCRLineIDs = Set<Int>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:90:47: error: cannot find type 'DocumentObservation' in scope
 88 | 	}
 89 |
 90 | 	func extractBlocksWithImages(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> (blocks: [DocumentBlock], images: [DocumentImage]) {
    |                                               `- error: cannot find type 'DocumentObservation' in scope
 91 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 92 | 		var usedOCRLineIDs = Set<Int>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:110:54: error: cannot find type 'DocumentObservation' in scope
108 | 	}
109 |
110 | 	private func gatherStructuredBlocks(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock] {
    |                                                      `- error: cannot find type 'DocumentObservation' in scope
111 | 		var blocks = [DocumentBlock]()
112 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:147:40: error: cannot find type 'DocumentObservation' in scope
145 | 	}
146 |
147 | 	private func makeParagraph(from text: DocumentObservation.Container.Text, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Paragraph? {
    |                                        `- error: cannot find type 'DocumentObservation' in scope
148 | 		let trimmed = text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
149 | 		let rect = text.boundingRegion.rect(in: pageSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:175:35: error: cannot find type 'DocumentObservation' in scope
173 | 	}
174 |
175 | 	private func makeList(from list: DocumentObservation.Container.List, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.List {
    |                                   `- error: cannot find type 'DocumentObservation' in scope
176 | 		var items = [DocumentBlock.List.Item]()
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:226:37: error: cannot find type 'DocumentObservation' in scope
224 | 	}
225 |
226 | 	private func makeTable(from table: DocumentObservation.Container.Table, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Table {
    |                                     `- error: cannot find type 'DocumentObservation' in scope
227 | 		let rows: [[DocumentBlock.Table.Cell]] = table.rows.map { row in
228 | 			row.map { cell in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:246:42: error: cannot find type 'DocumentObservation' in scope
244 | 	}
245 |
246 | 	private func paragraphs(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock.Paragraph] {
    |                                          `- error: cannot find type 'DocumentObservation' in scope
247 | 		if container.paragraphs.isEmpty {
248 | 			let trimmed = container.text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:257:46: error: cannot find type 'DocumentObservation' in scope
255 | 	}
256 |
257 | 	private func resolveMarker(from markerType: DocumentObservation.Container.List.Marker?, fallback: String) -> DocumentBlock.List.Marker {
    |                                              `- error: cannot find type 'DocumentObservation' in scope
258 | 		guard let markerType else {
259 | 			return .custom(fallback)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:866:26: error: no type named 'NormalizedRegion' in module 'Vision'
864 |
865 | @available(iOS 26.0, tvOS 26.0, macOS 26.0, visionOS 26.0, *)
866 | private extension Vision.NormalizedRegion {
    |                          `- error: no type named 'NormalizedRegion' in module 'Vision'
867 | 	func rect(in pageSize: CGSize) -> CGRect {
868 | 		convertNormalizedBoundingBox(normalizedPath.boundingBox, in: pageSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:37:25: error: cannot find 'RecognizeDocumentsRequest' in scope
 35 | 	}
 36 | 	let pageSize = CGSize(width: CGFloat(cgImage.width), height: CGFloat(cgImage.height))
 37 | 	let recognizeRequest = RecognizeDocumentsRequest()
    |                         `- error: cannot find 'RecognizeDocumentsRequest' in scope
 38 | 	let observations = try await recognizeRequest.perform(on: cgImage, orientation: nil)
 39 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:38:82: error: 'nil' requires a contextual type
 36 | 	let pageSize = CGSize(width: CGFloat(cgImage.width), height: CGFloat(cgImage.height))
 37 | 	let recognizeRequest = RecognizeDocumentsRequest()
 38 | 	let observations = try await recognizeRequest.perform(on: cgImage, orientation: nil)
    |                                                                                  `- error: 'nil' requires a contextual type
 39 |
 40 | 	guard let document = observations.first?.document else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:148:57: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
146 |
147 | 	private func makeParagraph(from text: DocumentObservation.Container.Text, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Paragraph? {
148 | 		let trimmed = text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
    |                                                         `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
149 | 		let rect = text.boundingRegion.rect(in: pageSize)
150 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:154:32: error: cannot infer key path type from context; consider explicitly specifying a root type
152 | 		if !paragraphLines.isEmpty {
153 | 			let docLines = paragraphLines.map { DocumentBlock.TextLine(text: $0.text, bounds: $0.bounds) }
154 | 			let combined = docLines.map(\.text).joined(separator: "\n")
    |                                `- error: cannot infer key path type from context; consider explicitly specifying a root type
155 | 			return DocumentBlock.Paragraph(text: combined, lines: docLines)
156 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:248:68: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
246 | 	private func paragraphs(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock.Paragraph] {
247 | 		if container.paragraphs.isEmpty {
248 | 			let trimmed = container.text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
    |                                                                    `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
249 | 			guard !trimmed.isEmpty else { return [] }
250 | 			guard let paragraph = makeParagraph(from: container.text, ocrLines: ocrLines, usedOCRLineIDs: &usedOCRLineIDs, usedOCRTexts: &usedOCRTexts) else { return [] }
[122/135] Compiling SwiftTextHTML String+Markdown.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[123/135] Compiling SwiftTextHTML Exports.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[124/135] Compiling SwiftTextHTML String+Charset.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[125/135] Emitting module SwiftTextHTML
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[126/135] Compiling SwiftTextHTML DOMText.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[127/135] Compiling SwiftTextHTML HTMLDocument.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Fetching https://github.com/weichsel/ZIPFoundation.git
Fetching https://github.com/apple/swift-argument-parser from cache
[1/5963] Fetching zipfoundation
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (1.29s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.51s)
Computing version for https://github.com/weichsel/ZIPFoundation.git
Computed https://github.com/weichsel/ZIPFoundation.git at 0.9.20 (2.04s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.51s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/weichsel/ZIPFoundation.git
Working copy of https://github.com/weichsel/ZIPFoundation.git resolved at 0.9.20
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
[1/1] Compiling plugin VersionGeneratorPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/49] Compiling HTMLParser HTMLParserEvent.swift
[7/49] Emitting module ArgumentParserToolInfo
[8/49] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/96] Compiling HTMLParser HTMLParserDelegateAdapter.swift
[10/96] Compiling HTMLParser HTMLParserDelegate.swift
[11/96] Compiling SwiftTextCore UnicodeAbuseSanitizer.swift
[12/96] Emitting module SwiftTextCore
[13/96] Emitting module HTMLParser
[14/96] Compiling HTMLParser HTMLParser.swift
[15/107] Compiling ArgumentParser CompletionKind.swift
[16/107] Compiling ArgumentParser Errors.swift
[17/107] Compiling ArgumentParser Flag.swift
[18/107] Compiling ArgumentParser InputKey.swift
[19/109] Compiling SwiftTextOCR DocumentImage.swift
[20/109] Compiling SwiftTextOCR DocumentBlockTranscript.swift
[21/109] Compiling SwiftTextOCR DocumentSemantics.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentSemantics.swift:189:16: error: cannot find 'RecognizeDocumentsRequest' in scope
187 | public func documentSemantics(from cgImage: CGImage, applyPostProcessing: Bool = true) async throws -> DocumentSemantics {
188 | 	let referenceSize = CGSize(width: CGFloat(cgImage.width), height: CGFloat(cgImage.height))
189 | 	let request = RecognizeDocumentsRequest()
    |                `- error: cannot find 'RecognizeDocumentsRequest' in scope
190 | 	let observations = try await request.perform(on: cgImage, orientation: nil)
191 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentSemantics.swift:190:73: error: 'nil' requires a contextual type
188 | 	let referenceSize = CGSize(width: CGFloat(cgImage.width), height: CGFloat(cgImage.height))
189 | 	let request = RecognizeDocumentsRequest()
190 | 	let observations = try await request.perform(on: cgImage, orientation: nil)
    |                                                                         `- error: 'nil' requires a contextual type
191 |
192 | 	guard let document = observations.first?.document else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:90:47: error: cannot find type 'DocumentObservation' in scope
 88 | 	}
 89 |
 90 | 	func extractBlocksWithImages(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> (blocks: [DocumentBlock], images: [DocumentImage]) {
    |                                               `- error: cannot find type 'DocumentObservation' in scope
 91 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 92 | 		var usedOCRLineIDs = Set<Int>()
[22/110] Emitting module ZIPFoundation
[23/110] Compiling SwiftTextHTML DOMElement.swift
[24/110] Compiling SwiftTextHTML DOMNode.swift
[25/110] Compiling ArgumentParser FishCompletionsGenerator.swift
[26/110] Compiling SwiftTextOCR OCRError.swift
[27/110] Compiling ArgumentParser ZshCompletionsGenerator.swift
[28/110] Compiling ArgumentParser Argument.swift
[29/110] Compiling ArgumentParser ArgumentDiscussion.swift
[30/110] Compiling ArgumentParser ArgumentHelp.swift
[31/110] Compiling ArgumentParser ArgumentVisibility.swift
[32/110] Compiling ArgumentParser CollectionExtensions.swift
[33/110] Compiling ArgumentParser Foundation.swift
[34/110] Compiling ArgumentParser InputOrigin.swift
[35/110] Compiling ArgumentParser Name.swift
[36/110] Compiling SwiftTextOCR TextLine.swift
[37/110] Compiling SwiftTextOCR TextLineSemanticComposer.swift
[43/115] Compiling SwiftTextOCR DocumentBlockMarkdown.swift
[44/115] Compiling ZIPFoundation URL+ZIP.swift
[45/115] Compiling ZIPFoundation resource_bundle_accessor.swift
[46/115] Emitting module ArgumentParser
[47/115] Compiling SwiftTextOCR UIImage+OCR.swift
[48/115] Compiling ArgumentParser MessageInfo.swift
[49/115] Compiling ArgumentParser UsageGenerator.swift
[50/115] Compiling ArgumentParser Parsed.swift
[51/115] Compiling ArgumentParser ParsedValues.swift
[52/115] Compiling SwiftTextOCR DocumentBlockExtraction.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:71:37: error: cannot find type 'DocumentObservation' in scope
 69 | 	}
 70 |
 71 | 	func extractBlocks(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> [DocumentBlock] {
    |                                     `- error: cannot find type 'DocumentObservation' in scope
 72 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 73 | 		var usedOCRLineIDs = Set<Int>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:90:47: error: cannot find type 'DocumentObservation' in scope
 88 | 	}
 89 |
 90 | 	func extractBlocksWithImages(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> (blocks: [DocumentBlock], images: [DocumentImage]) {
    |                                               `- error: cannot find type 'DocumentObservation' in scope
 91 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 92 | 		var usedOCRLineIDs = Set<Int>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:110:54: error: cannot find type 'DocumentObservation' in scope
108 | 	}
109 |
110 | 	private func gatherStructuredBlocks(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock] {
    |                                                      `- error: cannot find type 'DocumentObservation' in scope
111 | 		var blocks = [DocumentBlock]()
112 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:147:40: error: cannot find type 'DocumentObservation' in scope
145 | 	}
146 |
147 | 	private func makeParagraph(from text: DocumentObservation.Container.Text, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Paragraph? {
    |                                        `- error: cannot find type 'DocumentObservation' in scope
148 | 		let trimmed = text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
149 | 		let rect = text.boundingRegion.rect(in: pageSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:175:35: error: cannot find type 'DocumentObservation' in scope
173 | 	}
174 |
175 | 	private func makeList(from list: DocumentObservation.Container.List, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.List {
    |                                   `- error: cannot find type 'DocumentObservation' in scope
176 | 		var items = [DocumentBlock.List.Item]()
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:226:37: error: cannot find type 'DocumentObservation' in scope
224 | 	}
225 |
226 | 	private func makeTable(from table: DocumentObservation.Container.Table, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Table {
    |                                     `- error: cannot find type 'DocumentObservation' in scope
227 | 		let rows: [[DocumentBlock.Table.Cell]] = table.rows.map { row in
228 | 			row.map { cell in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:246:42: error: cannot find type 'DocumentObservation' in scope
244 | 	}
245 |
246 | 	private func paragraphs(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock.Paragraph] {
    |                                          `- error: cannot find type 'DocumentObservation' in scope
247 | 		if container.paragraphs.isEmpty {
248 | 			let trimmed = container.text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:257:46: error: cannot find type 'DocumentObservation' in scope
255 | 	}
256 |
257 | 	private func resolveMarker(from markerType: DocumentObservation.Container.List.Marker?, fallback: String) -> DocumentBlock.List.Marker {
    |                                              `- error: cannot find type 'DocumentObservation' in scope
258 | 		guard let markerType else {
259 | 			return .custom(fallback)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:866:26: error: no type named 'NormalizedRegion' in module 'Vision'
864 |
865 | @available(iOS 26.0, tvOS 26.0, macOS 26.0, visionOS 26.0, *)
866 | private extension Vision.NormalizedRegion {
    |                          `- error: no type named 'NormalizedRegion' in module 'Vision'
867 | 	func rect(in pageSize: CGSize) -> CGRect {
868 | 		convertNormalizedBoundingBox(normalizedPath.boundingBox, in: pageSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:37:25: error: cannot find 'RecognizeDocumentsRequest' in scope
 35 | 	}
 36 | 	let pageSize = CGSize(width: CGFloat(cgImage.width), height: CGFloat(cgImage.height))
 37 | 	let recognizeRequest = RecognizeDocumentsRequest()
    |                         `- error: cannot find 'RecognizeDocumentsRequest' in scope
 38 | 	let observations = try await recognizeRequest.perform(on: cgImage, orientation: nil)
 39 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:38:82: error: 'nil' requires a contextual type
 36 | 	let pageSize = CGSize(width: CGFloat(cgImage.width), height: CGFloat(cgImage.height))
 37 | 	let recognizeRequest = RecognizeDocumentsRequest()
 38 | 	let observations = try await recognizeRequest.perform(on: cgImage, orientation: nil)
    |                                                                                  `- error: 'nil' requires a contextual type
 39 |
 40 | 	guard let document = observations.first?.document else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:148:57: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
146 |
147 | 	private func makeParagraph(from text: DocumentObservation.Container.Text, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Paragraph? {
148 | 		let trimmed = text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
    |                                                         `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
149 | 		let rect = text.boundingRegion.rect(in: pageSize)
150 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:154:32: error: cannot infer key path type from context; consider explicitly specifying a root type
152 | 		if !paragraphLines.isEmpty {
153 | 			let docLines = paragraphLines.map { DocumentBlock.TextLine(text: $0.text, bounds: $0.bounds) }
154 | 			let combined = docLines.map(\.text).joined(separator: "\n")
    |                                `- error: cannot infer key path type from context; consider explicitly specifying a root type
155 | 			return DocumentBlock.Paragraph(text: combined, lines: docLines)
156 | 		}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:248:68: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
246 | 	private func paragraphs(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock.Paragraph] {
247 | 		if container.paragraphs.isEmpty {
248 | 			let trimmed = container.text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
    |                                                                    `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
249 | 			guard !trimmed.isEmpty else { return [] }
250 | 			guard let paragraph = makeParagraph(from: container.text, ocrLines: ocrLines, usedOCRLineIDs: &usedOCRLineIDs, usedOCRTexts: &usedOCRTexts) else { return [] }
[53/115] Compiling SwiftTextHTML HTMLDocument.swift
[54/115] Compiling SwiftTextHTML String+Markdown.swift
[55/115] Compiling SwiftTextHTML String+Charset.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[58/116] Emitting module SwiftTextOCR
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:71:37: error: cannot find type 'DocumentObservation' in scope
 69 | 	}
 70 |
 71 | 	func extractBlocks(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> [DocumentBlock] {
    |                                     `- error: cannot find type 'DocumentObservation' in scope
 72 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 73 | 		var usedOCRLineIDs = Set<Int>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:90:47: error: cannot find type 'DocumentObservation' in scope
 88 | 	}
 89 |
 90 | 	func extractBlocksWithImages(from container: DocumentObservation.Container, applyPostProcessing: Bool = true) throws -> (blocks: [DocumentBlock], images: [DocumentImage]) {
    |                                               `- error: cannot find type 'DocumentObservation' in scope
 91 | 		let ocrLines = allowStandaloneSupplementation ? recognizeTextLines() : []
 92 | 		var usedOCRLineIDs = Set<Int>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:110:54: error: cannot find type 'DocumentObservation' in scope
108 | 	}
109 |
110 | 	private func gatherStructuredBlocks(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock] {
    |                                                      `- error: cannot find type 'DocumentObservation' in scope
111 | 		var blocks = [DocumentBlock]()
112 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:147:40: error: cannot find type 'DocumentObservation' in scope
145 | 	}
146 |
147 | 	private func makeParagraph(from text: DocumentObservation.Container.Text, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Paragraph? {
    |                                        `- error: cannot find type 'DocumentObservation' in scope
148 | 		let trimmed = text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
149 | 		let rect = text.boundingRegion.rect(in: pageSize)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:175:35: error: cannot find type 'DocumentObservation' in scope
173 | 	}
174 |
175 | 	private func makeList(from list: DocumentObservation.Container.List, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.List {
    |                                   `- error: cannot find type 'DocumentObservation' in scope
176 | 		var items = [DocumentBlock.List.Item]()
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:226:37: error: cannot find type 'DocumentObservation' in scope
224 | 	}
225 |
226 | 	private func makeTable(from table: DocumentObservation.Container.Table, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> DocumentBlock.Table {
    |                                     `- error: cannot find type 'DocumentObservation' in scope
227 | 		let rows: [[DocumentBlock.Table.Cell]] = table.rows.map { row in
228 | 			row.map { cell in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:246:42: error: cannot find type 'DocumentObservation' in scope
244 | 	}
245 |
246 | 	private func paragraphs(from container: DocumentObservation.Container, ocrLines: [OCRLine], usedOCRLineIDs: inout Set<Int>, usedOCRTexts: inout Set<String>) -> [DocumentBlock.Paragraph] {
    |                                          `- error: cannot find type 'DocumentObservation' in scope
247 | 		if container.paragraphs.isEmpty {
248 | 			let trimmed = container.text.transcript.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:257:46: error: cannot find type 'DocumentObservation' in scope
255 | 	}
256 |
257 | 	private func resolveMarker(from markerType: DocumentObservation.Container.List.Marker?, fallback: String) -> DocumentBlock.List.Marker {
    |                                              `- error: cannot find type 'DocumentObservation' in scope
258 | 		guard let markerType else {
259 | 			return .custom(fallback)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTextOCR/DocumentBlockExtraction.swift:866:26: error: no type named 'NormalizedRegion' in module 'Vision'
864 |
865 | @available(iOS 26.0, tvOS 26.0, macOS 26.0, visionOS 26.0, *)
866 | private extension Vision.NormalizedRegion {
    |                          `- error: no type named 'NormalizedRegion' in module 'Vision'
867 | 	func rect(in pageSize: CGSize) -> CGRect {
868 | 		convertNormalizedBoundingBox(normalizedPath.boundingBox, in: pageSize)
BUILD FAILURE 6.1 macosSpm