Build Information
Failed to build VideoHash, reference 0.4.1 (19880d), with Swift 6.3 for macOS (SPM) on 3 Nov 2026 21:55:56 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fdenis75/VideoHash.git
Reference: 0.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fdenis75/VideoHash
* tag 0.4.1 -> FETCH_HEAD
HEAD is now at 19880d9 Merge pull request #4 from fdenis75/wip/2026-11-02
Cloned https://github.com/fdenis75/VideoHash.git
Revision (git rev-parse @):
19880d9910c51ca54dd84566635756b4b5716d1a
SUCCESS checkout https://github.com/fdenis75/VideoHash.git at 0.4.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/fdenis75/VideoHash.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64
Building for debugging...
[0/18] Write sources
[3/18] Write testhash-entitlement.plist
[3/18] Write test-hash-entitlement.plist
[6/18] Write sources
[7/18] Write hash-benchmark-entitlement.plist
[8/18] Write swift-version-69A768CDF2A0BEE1.txt
[10/29] Compiling Logging Logger+With.swift
[11/29] Compiling Logging LoggingSystem.swift
[12/29] Compiling Logging Logger+Attributes.swift
[13/29] Compiling Logging Logger.swift
[14/29] Compiling Logging LogHandler.swift
[15/30] Compiling Logging LogEvent.swift
[16/30] Compiling Logging SwiftLogNoOpLogHandler.swift
[17/30] Compiling Logging MultiplexLogHandler.swift
[18/30] Compiling Logging StreamLogHandler.swift
[19/30] Compiling Logging Locks.swift
[20/30] Emitting module Logging
[21/30] Compiling Logging MetadataProvider.swift
[22/56] Emitting module VideoHash
[23/58] Compiling VideoHash FFmpegPathResolver.swift
[24/58] Compiling VideoHash FFmpegProcessResult.swift
[25/58] Compiling VideoHash FFmpegProcessRunner.swift
[26/58] Compiling VideoHash SpriteComposer.swift
[27/58] Compiling VideoHash SlowPathScheduling.swift
[28/58] Compiling VideoHash FFmpegDiagnostics.swift
[29/58] Compiling VideoHash FFmpegDurationScanner.swift
[30/58] Compiling VideoHash FFmpegExtractionPolicy.swift
[31/58] Compiling VideoHash AVFrameGenerator.swift
[32/58] Compiling VideoHash BMPDecoder.swift
[33/58] Compiling VideoHash DCTProcessor.swift
[34/58] Compiling VideoHash RGBImage.swift
[35/58] Compiling VideoHash SpriteAccumulator.swift
[36/58] Compiling VideoHash HashBatchPlanner.swift
[37/58] Compiling VideoHash HashConfiguration.swift
[38/58] Compiling VideoHash HashError.swift
[39/58] Compiling VideoHash HashResult.swift
[40/58] Compiling VideoHash OSHashGenerator.swift
[41/58] Compiling VideoHash AVFoundationFrameSampler.swift
[42/58] Compiling VideoHash Logger.swift
[43/58] Compiling VideoHash VideoHash.swift
[44/58] Compiling VideoHash FrameCollection.swift
[45/58] Compiling VideoHash FrameExtractor.swift
[46/58] Compiling VideoHash HashComputer.swift
[47/58] Compiling VideoHash ImageProcessor.swift
[48/58] Compiling VideoHash PHashGenerator.swift
[49/58] Compiling VideoHash ProcessExecution.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[50/67] Compiling hash_benchmark Report.swift
[51/67] 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 {
[52/67] Compiling hash_benchmark Measurement.swift
[53/67] 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 {
[54/67] Emitting module TestHash
[55/67] Emitting module test_hash
Fetching https://github.com/apple/swift-log.git
[1/8325] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (3.59s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.2 (4.19s)
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.3 macosSpm