Build Information
Failed to build Valigator with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kapizoli77/valigator.git
Reference: 1.0.0
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/kapizoli77/valigator
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 131ab80 Fastlane fix, readme, podspec patch
Cloned https://github.com/kapizoli77/valigator.git
Revision (git rev-parse @):
131ab8089326622d4e6d1ab00e5a09e4366281fa
SUCCESS checkout https://github.com/kapizoli77/valigator.git at 1.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/kapizoli77/valigator.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/33] Emitting module Valigator
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:9:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:18:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:9:40: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:92:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:119:38: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDataSource: class {
^~~~~
AnyObject
[4/37] Compiling Valigator OnlyLetterOrNumberValidationRule.swift
/host/spi-builder-workspace/Source/ValidationRules/RegexValidationRule.swift:24:20: 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.
let test = NSPredicate(format: "SELF MATCHES %@", regex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
[5/37] Compiling Valigator OnlyNumberValidationRule.swift
/host/spi-builder-workspace/Source/ValidationRules/RegexValidationRule.swift:24:20: 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.
let test = NSPredicate(format: "SELF MATCHES %@", regex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
[6/37] Compiling Valigator RegexValidationRule.swift
/host/spi-builder-workspace/Source/ValidationRules/RegexValidationRule.swift:24:20: 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.
let test = NSPredicate(format: "SELF MATCHES %@", regex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
[7/37] Compiling Valigator RequiredCheckBoxValidationRule.swift
/host/spi-builder-workspace/Source/ValidationRules/RegexValidationRule.swift:24:20: 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.
let test = NSPredicate(format: "SELF MATCHES %@", regex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
[8/37] Compiling Valigator CharacterRangeInputRule.swift
[9/37] Compiling Valigator CrossFieldValidationRule.swift
[10/37] Compiling Valigator EmailValidationRule.swift
[11/37] Compiling Valigator ExcludeCharactersRule.swift
[12/37] Compiling Valigator FieldValueManager.swift
[13/37] Compiling Valigator FieldValueManagerEntity.swift
[14/37] Compiling Valigator BaseFormValidator.swift
[15/37] Compiling Valigator DuringEditFormValidator.swift
[16/37] Compiling Valigator EndOfFieldFormValidator.swift
[17/37] Compiling Valigator RequiredObjectValidationRule.swift
[18/37] Compiling Valigator RequiredStringValidationRule.swift
[19/37] Compiling Valigator UppercaseLetterValidationRule.swift
[20/37] Compiling Valigator ValidationRuleProtocol.swift
[21/37] Compiling Valigator Collection+Exts.swift
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:9:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:18:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDelegate: class {
^~~~~
AnyObject
[22/37] Compiling Valigator Optional+Exts.swift
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:9:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:18:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDelegate: class {
^~~~~
AnyObject
[23/37] Compiling Valigator FieldValidationEntities.swift
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:9:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:18:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDelegate: class {
^~~~~
AnyObject
[24/37] Compiling Valigator FieldValidationProtocol.swift
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:9:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:18:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDelegate: class {
^~~~~
AnyObject
[25/37] Compiling Valigator FieldValidator.swift
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:9:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:18:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDelegate: class {
^~~~~
AnyObject
[26/37] Compiling Valigator Valigator.swift
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:92:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:119:38: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDataSource: class {
^~~~~
AnyObject
[27/37] Compiling Valigator ValigatorEntities.swift
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:92:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:119:38: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDataSource: class {
^~~~~
AnyObject
[28/37] Compiling Valigator ValigatorProtocol.swift
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:92:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:119:38: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDataSource: class {
^~~~~
AnyObject
[29/37] Compiling Valigator BaseValidationRule.swift
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:92:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:119:38: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDataSource: class {
^~~~~
AnyObject
[30/37] Compiling Valigator EndOfFormFormValidator.swift
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:9:40: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDataSource: class {
^~~~~
AnyObject
[31/37] Compiling Valigator FieldValidationWrapper.swift
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:9:40: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDataSource: class {
^~~~~
AnyObject
[32/37] Compiling Valigator FormValidatorProtocol.swift
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:9:40: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDataSource: class {
^~~~~
AnyObject
[33/37] Compiling Valigator NeverFormValidator.swift
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:9:40: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDataSource: class {
^~~~~
AnyObject
[34/37] Compiling Valigator LowercaseLetterValidationRule.swift
[35/37] Compiling Valigator MaxLengthValidationRule.swift
[36/37] Compiling Valigator MinLengthValidationRule.swift
[37/37] Compiling Valigator OnlyDigitsValidationRule.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Valigator RequiredCheckBoxValidationRule.swift
[3/6] Compiling Valigator RegexValidationRule.swift
/host/spi-builder-workspace/Source/ValidationRules/RegexValidationRule.swift:24:20: 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.
let test = NSPredicate(format: "SELF MATCHES %@", regex)
^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
public convenience init(format predicateFormat: String, _ args: any CVarArg...)
^
[4/6] Compiling Valigator OnlyLetterOrNumberValidationRule.swift
[5/6] Emitting module Valigator
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:9:44: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FieldValidation/FieldValidationProtocol.swift:18:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FieldValidationDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:9:40: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/FormValidators/FormValidatorProtocol.swift:30:42: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol FormValidatorDataSource: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:92:36: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDelegate: class {
^~~~~
AnyObject
/host/spi-builder-workspace/Source/Services/ValigatorProtocol.swift:119:38: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol ValigatorDataSource: class {
^~~~~
AnyObject
[6/6] Compiling Valigator OnlyNumberValidationRule.swift
error: fatalError
BUILD FAILURE 5.10 linux