The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VideoHash, reference v0.4.0 (015818), with Swift 6.2 for macOS (SPM) on 31 Oct 2026 11:38:02 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fdenis75/VideoHash.git
Reference: v0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fdenis75/VideoHash
 * tag               v0.4.0     -> FETCH_HEAD
HEAD is now at 0158180 Merge pull request #2 from fdenis75/codex/hash-lifecycle
Cloned https://github.com/fdenis75/VideoHash.git
Revision (git rev-parse @):
015818010e8a8f630239433c675245238eacd4ca
SUCCESS checkout https://github.com/fdenis75/VideoHash.git at v0.4.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/fdenis75/VideoHash.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/18] Write sources
[5/18] Write TestHash-entitlement.plist
[5/18] Write hash-benchmark-entitlement.plist
[7/18] Write test-hash-entitlement.plist
[8/18] Write swift-version--3CB7CFEC50E0D141.txt
[10/29] Compiling Logging Logger+Attributes.swift
[11/29] Compiling Logging LoggingSystem.swift
[12/29] Compiling Logging Logger+With.swift
[13/29] Compiling Logging LogHandler.swift
[14/29] Compiling Logging Logger.swift
[15/30] Compiling Logging LogEvent.swift
[16/30] Compiling Logging Locks.swift
[17/30] Compiling Logging MultiplexLogHandler.swift
[18/30] Compiling Logging StreamLogHandler.swift
[19/30] Compiling Logging SwiftLogNoOpLogHandler.swift
[20/30] Emitting module Logging
[21/30] Compiling Logging MetadataProvider.swift
[22/55] Compiling VideoHash HashBatchPlanner.swift
[23/55] Compiling VideoHash HashConfiguration.swift
[24/55] Compiling VideoHash HashError.swift
[25/55] Emitting module VideoHash
[26/57] Compiling VideoHash HashResult.swift
[27/57] Compiling VideoHash OSHashGenerator.swift
[28/57] Compiling VideoHash AVFrameGenerator.swift
[29/57] Compiling VideoHash PHashGenerator.swift
[30/57] Compiling VideoHash ProcessExecution.swift
[31/57] Compiling VideoHash SpriteComposer.swift
[32/57] Compiling VideoHash SlowPathScheduling.swift
[33/57] Compiling VideoHash FFmpegProcessResult.swift
[34/57] Compiling VideoHash FFmpegProcessRunner.swift
[35/57] Compiling VideoHash FrameCollection.swift
[36/57] Compiling VideoHash FFmpegDurationScanner.swift
[37/57] Compiling VideoHash FFmpegExtractionPolicy.swift
[38/57] Compiling VideoHash FFmpegPathResolver.swift
[39/57] Compiling VideoHash BMPDecoder.swift
[40/57] Compiling VideoHash DCTProcessor.swift
[41/57] Compiling VideoHash FFmpegDiagnostics.swift
[42/57] Compiling VideoHash RGBImage.swift
[43/57] Compiling VideoHash SpriteAccumulator.swift
[44/57] Compiling VideoHash FrameExtractor.swift
[45/57] Compiling VideoHash HashComputer.swift
[46/57] Compiling VideoHash ImageProcessor.swift
[47/57] Compiling VideoHash Logger.swift
[48/57] Compiling VideoHash VideoHash.swift
[49/65] Emitting module TestHash
[50/65] Compiling TestHash main.swift
[50/65] Write Objects.LinkFileList
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/65] Emitting module hash_benchmark
/Users/admin/builder/spi-builder-workspace/Sources/hash-benchmark/main.swift:5:1: error: 'main' attribute cannot be used in a module that contains top-level code
 1 | import Foundation
   | |- note: top-level code defined in this source file
   | `- note: pass '-parse-as-library' to compiler invocation if this is intentional
 2 | import Synchronization
 3 | import VideoHash
 4 |
 5 | @main
   | `- error: 'main' attribute cannot be used in a module that contains top-level code
 6 | struct HashBenchmark {
 7 |     static func seconds(since start: ContinuousClock.Instant) -> Double {
[53/65] Compiling hash_benchmark Measurement.swift
[54/65] Compiling hash_benchmark Report.swift
[55/65] Compiling hash_benchmark main.swift
/Users/admin/builder/spi-builder-workspace/Sources/hash-benchmark/main.swift:5:1: error: 'main' attribute cannot be used in a module that contains top-level code
 1 | import Foundation
   | |- note: top-level code defined in this source file
   | `- note: pass '-parse-as-library' to compiler invocation if this is intentional
 2 | import Synchronization
 3 | import VideoHash
 4 |
 5 | @main
   | `- error: 'main' attribute cannot be used in a module that contains top-level code
 6 | struct HashBenchmark {
 7 |     static func seconds(since start: ContinuousClock.Instant) -> Double {
[55/65] Linking TestHash
Fetching https://github.com/apple/swift-log.git
[1/8386] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (2.26s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.2 (2.85s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.16.2
BUILD FAILURE 6.2 macosSpm