Build Information
Failed to build CleevioValidators, reference master (c94d39), with Swift 6.1 for Linux on 16 Oct 2025 13:19:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cleevio/CleevioValidators.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/cleevio/CleevioValidators
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c94d390 Merge pull request #1 from cleevio/swift6mode
Cloned https://github.com/cleevio/CleevioValidators.git
Revision (git rev-parse @):
c94d390d74b1dcae3116212553b3c3b54f837ebb
SUCCESS checkout https://github.com/cleevio/CleevioValidators.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/cleevio/CleevioValidators.git
https://github.com/cleevio/CleevioValidators.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "CleevioValidators",
"name" : "CleevioValidators",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CleevioValidators",
"targets" : [
"CleevioValidators"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"6"
],
"targets" : [
{
"c99name" : "CleevioValidatorsTests",
"module_type" : "SwiftTarget",
"name" : "CleevioValidatorsTests",
"path" : "Tests/CleevioValidatorsTests",
"sources" : [
"BoolValidatorTests.swift",
"EmailFormatValidatorTests.swift",
"MinimumCharactersValidatorTests.swift",
"MinimumCollectionCountValidatorTests.swift",
"NonNilValidatorTests.swift",
"ValidatorTests.swift"
],
"target_dependencies" : [
"CleevioValidators"
],
"type" : "test"
},
{
"c99name" : "CleevioValidators",
"module_type" : "SwiftTarget",
"name" : "CleevioValidators",
"path" : "Sources/CleevioValidators",
"product_memberships" : [
"CleevioValidators"
],
"sources" : [
"ValidatorType.swift",
"Validators/BoolValidator.swift",
"Validators/EmailFormatValidator.swift",
"Validators/MinimumCharactersValidator.swift",
"Validators/MinimumCollectionCountValidator.swift",
"Validators/NonNilValidator.swift",
"Validators/ZIPCodeFormatValidator.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:808cb2b2a6cec76654a3acbd283c6c2205bc60d2b29562c95b9f5147612f6d32
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling CleevioValidators ZIPCodeFormatValidator.swift
/host/spi-builder-workspace/Sources/CleevioValidators/Validators/ZIPCodeFormatValidator.swift:44:28: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
42 | // Covers formats like: "12345", "12345-6789", "SW1A 1AA", "75008", "100-0001", etc.
43 | let zipRegex = #"^[A-Za-z0-9\s\-]{3,12}$"#
44 | let zipPredicate = NSPredicate(format: "SELF MATCHES %@", zipRegex)
| `- error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
45 | return zipPredicate.evaluate(with: zipCode) ? nil : .incorrectFormat
46 | }
Foundation.NSPredicate.init:3:22: note: 'init(format:_:)' has been explicitly marked unavailable here
1 | class NSPredicate {
2 | @available(*, unavailable, renamed: "init(block:)", message: "Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.")
3 | public convenience init(format predicateFormat: String, _ args: any CVarArg...)}
| `- note: 'init(format:_:)' has been explicitly marked unavailable here
4 |
[4/10] Compiling CleevioValidators NonNilValidator.swift
[5/10] Compiling CleevioValidators MinimumCharactersValidator.swift
[6/10] Compiling CleevioValidators MinimumCollectionCountValidator.swift
[7/10] Emitting module CleevioValidators
[8/10] Compiling CleevioValidators BoolValidator.swift
[9/10] Compiling CleevioValidators ValidatorType.swift
[10/10] Compiling CleevioValidators EmailFormatValidator.swift
/host/spi-builder-workspace/Sources/CleevioValidators/Validators/EmailFormatValidator.swift:36:29: error: cannot find 'NSDataDetector' in scope
34 | guard !email.contains("..") else { return .incorrectFormat }
35 |
36 | let detector = try! NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue)
| `- error: cannot find 'NSDataDetector' in scope
37 | let range = NSRange(location: 0, length: email.utf16.count)
38 | let matches = detector.matches(in: email, options: [], range: range)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:808cb2b2a6cec76654a3acbd283c6c2205bc60d2b29562c95b9f5147612f6d32
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling CleevioValidators ZIPCodeFormatValidator.swift
/host/spi-builder-workspace/Sources/CleevioValidators/Validators/ZIPCodeFormatValidator.swift:44:28: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
42 | // Covers formats like: "12345", "12345-6789", "SW1A 1AA", "75008", "100-0001", etc.
43 | let zipRegex = #"^[A-Za-z0-9\s\-]{3,12}$"#
44 | let zipPredicate = NSPredicate(format: "SELF MATCHES %@", zipRegex)
| `- error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
45 | return zipPredicate.evaluate(with: zipCode) ? nil : .incorrectFormat
46 | }
Foundation.NSPredicate.init:3:22: note: 'init(format:_:)' has been explicitly marked unavailable here
1 | class NSPredicate {
2 | @available(*, unavailable, renamed: "init(block:)", message: "Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.")
3 | public convenience init(format predicateFormat: String, _ args: any CVarArg...)}
| `- note: 'init(format:_:)' has been explicitly marked unavailable here
4 |
[3/9] Compiling CleevioValidators NonNilValidator.swift
[4/9] Compiling CleevioValidators MinimumCharactersValidator.swift
[5/9] Compiling CleevioValidators MinimumCollectionCountValidator.swift
[6/9] Compiling CleevioValidators BoolValidator.swift
[7/9] Compiling CleevioValidators ValidatorType.swift
[8/9] Emitting module CleevioValidators
[9/9] Compiling CleevioValidators EmailFormatValidator.swift
/host/spi-builder-workspace/Sources/CleevioValidators/Validators/EmailFormatValidator.swift:36:29: error: cannot find 'NSDataDetector' in scope
34 | guard !email.contains("..") else { return .incorrectFormat }
35 |
36 | let detector = try! NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue)
| `- error: cannot find 'NSDataDetector' in scope
37 | let range = NSRange(location: 0, length: email.utf16.count)
38 | let matches = detector.matches(in: email, options: [], range: range)
BUILD FAILURE 6.1 linux