Build Information
Failed to build Hamcrest, reference 2.4.2 (940f72), with Swift 6.1 for macOS (SPM) on 12 Aug 2026 05:32:35 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nschum/SwiftHamcrest.git
Reference: 2.4.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nschum/SwiftHamcrest
* tag 2.4.2 -> FETCH_HEAD
HEAD is now at 940f722 Merge branch 'master' of github.com:nschum/SwiftHamcrest
Cloned https://github.com/nschum/SwiftHamcrest.git
Revision (git rev-parse @):
940f722ef40c373738167fdffb99d8bdff91ab72
SUCCESS checkout https://github.com/nschum/SwiftHamcrest.git at 2.4.2
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/nschum/SwiftHamcrest.git
https://github.com/nschum/SwiftHamcrest.git
{
"dependencies" : [
],
"manifest_display_name" : "Hamcrest",
"name" : "Hamcrest",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Hamcrest",
"targets" : [
"Hamcrest"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "HamcrestSwiftTesting",
"targets" : [
"HamcrestSwiftTesting"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HamcrestTests",
"module_type" : "SwiftTarget",
"name" : "HamcrestTests",
"path" : "HamcrestTests",
"sources" : [
"ArithmeticMatcherTests.swift",
"AssertThatTests.swift",
"BaseTestCase.swift",
"BasicMatcherTests.swift",
"DictionaryMatcherTests.swift",
"ErrorTests.swift",
"MatchResultTests.swift",
"MatcherMocks.swift",
"MetaMatcherTests.swift",
"OperatorMatcherTests.swift",
"ReflectionMatcherTests.swift",
"SequenceMatcherTests.swift",
"StringMatcherTests.swift",
"SwiftTesting.swift"
],
"target_dependencies" : [
"Hamcrest"
],
"type" : "test"
},
{
"c99name" : "HamcrestSwiftTestingTests",
"module_type" : "SwiftTarget",
"name" : "HamcrestSwiftTestingTests",
"path" : "HamcrestSwiftTesting",
"sources" : [
"Source/Test/HamcrestSwiftTestingTests.swift"
],
"target_dependencies" : [
"Hamcrest",
"HamcrestSwiftTesting"
],
"type" : "test"
},
{
"c99name" : "HamcrestSwiftTesting",
"module_type" : "SwiftTarget",
"name" : "HamcrestSwiftTesting",
"path" : "HamcrestSwiftTesting",
"product_memberships" : [
"HamcrestSwiftTesting"
],
"sources" : [
"Source/Main/HamcrestSwiftTesting.swift"
],
"target_dependencies" : [
"Hamcrest"
],
"type" : "library"
},
{
"c99name" : "Hamcrest",
"module_type" : "SwiftTarget",
"name" : "Hamcrest",
"path" : "Hamcrest",
"product_memberships" : [
"Hamcrest",
"HamcrestSwiftTesting"
],
"sources" : [
"ArithmeticMatchers.swift",
"BasicMatchers.swift",
"Descriptions.swift",
"DictionaryMatchers.swift",
"Hamcrest.swift",
"MatchResult.swift",
"Matcher.swift",
"MetaMatchers.swift",
"OperatorMatchers.swift",
"ReflectionMatchers.swift",
"SequenceMatchers.swift",
"StringMatchers.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/15] Compiling Hamcrest ReflectionMatchers.swift
[5/15] Compiling Hamcrest OperatorMatchers.swift
[6/15] Compiling Hamcrest SequenceMatchers.swift
[7/16] Compiling Hamcrest StringMatchers.swift
[8/16] Compiling Hamcrest MetaMatchers.swift
[9/16] Compiling Hamcrest Matcher.swift
[10/16] Compiling Hamcrest MatchResult.swift
[11/16] Compiling Hamcrest Descriptions.swift
[12/16] Compiling Hamcrest DictionaryMatchers.swift
[13/16] Compiling Hamcrest ArithmeticMatchers.swift
[14/16] Compiling Hamcrest BasicMatchers.swift
[15/16] Emitting module Hamcrest
[16/16] Compiling Hamcrest Hamcrest.swift
/Users/admin/builder/spi-builder-workspace/Hamcrest/Hamcrest.swift:30:74: error: extra argument 'severity' in call
28 | if #available(macOS 26, iOS 26, tvOS 26, watchOS 26, *) {
29 | #if canImport(Testing)
30 | Issue.record("add 'import HamcrestSwiftTesting'", severity: .warning)
| `- error: extra argument 'severity' in call
31 | Issue.record(Testing.Comment(rawValue: message), sourceLocation: Testing.SourceLocation(fileID: fileID, filePath: file.description, line: Int(line), column: Int(column)))
32 | #endif
/Users/admin/builder/spi-builder-workspace/Hamcrest/Hamcrest.swift:30:74: error: cannot infer contextual base in reference to member 'warning'
28 | if #available(macOS 26, iOS 26, tvOS 26, watchOS 26, *) {
29 | #if canImport(Testing)
30 | Issue.record("add 'import HamcrestSwiftTesting'", severity: .warning)
| `- error: cannot infer contextual base in reference to member 'warning'
31 | Issue.record(Testing.Comment(rawValue: message), sourceLocation: Testing.SourceLocation(fileID: fileID, filePath: file.description, line: Int(line), column: Int(column)))
32 | #endif
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Hamcrest/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/HamcrestSwiftTesting/Source/Test/HamcrestSwiftTestingTests.swift
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/13] Compiling Hamcrest ReflectionMatchers.swift
[3/14] Emitting module Hamcrest
[4/14] Compiling Hamcrest MatchResult.swift
[5/14] Compiling Hamcrest Descriptions.swift
[6/14] Compiling Hamcrest DictionaryMatchers.swift
[7/14] Compiling Hamcrest ArithmeticMatchers.swift
[8/14] Compiling Hamcrest BasicMatchers.swift
[9/14] Compiling Hamcrest Matcher.swift
[10/14] Compiling Hamcrest MetaMatchers.swift
[11/14] Compiling Hamcrest OperatorMatchers.swift
[12/14] Compiling Hamcrest SequenceMatchers.swift
[13/14] Compiling Hamcrest Hamcrest.swift
/Users/admin/builder/spi-builder-workspace/Hamcrest/Hamcrest.swift:30:74: error: extra argument 'severity' in call
28 | if #available(macOS 26, iOS 26, tvOS 26, watchOS 26, *) {
29 | #if canImport(Testing)
30 | Issue.record("add 'import HamcrestSwiftTesting'", severity: .warning)
| `- error: extra argument 'severity' in call
31 | Issue.record(Testing.Comment(rawValue: message), sourceLocation: Testing.SourceLocation(fileID: fileID, filePath: file.description, line: Int(line), column: Int(column)))
32 | #endif
/Users/admin/builder/spi-builder-workspace/Hamcrest/Hamcrest.swift:30:74: error: cannot infer contextual base in reference to member 'warning'
28 | if #available(macOS 26, iOS 26, tvOS 26, watchOS 26, *) {
29 | #if canImport(Testing)
30 | Issue.record("add 'import HamcrestSwiftTesting'", severity: .warning)
| `- error: cannot infer contextual base in reference to member 'warning'
31 | Issue.record(Testing.Comment(rawValue: message), sourceLocation: Testing.SourceLocation(fileID: fileID, filePath: file.description, line: Int(line), column: Int(column)))
32 | #endif
[14/14] Compiling Hamcrest StringMatchers.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/HamcrestTests/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/HamcrestSwiftTesting/Source/Main/HamcrestSwiftTesting.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Hamcrest/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/HamcrestSwiftTesting/Source/Test/HamcrestSwiftTestingTests.swift
BUILD FAILURE 6.1 macosSpm