Build Information
Failed to build InputFence, reference main (c2e513), with Swift 6.1 for Android on 23 Aug 2025 05:59:16 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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PalmeiraLabs/InputFence.git
Reference: main
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/PalmeiraLabs/InputFence
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c2e5137 Add full documentation.
Cloned https://github.com/PalmeiraLabs/InputFence.git
Revision (git rev-parse @):
c2e5137a94367026d727f7c386d1f37fbaf31f35
SUCCESS checkout https://github.com/PalmeiraLabs/InputFence.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/PalmeiraLabs/InputFence.git
https://github.com/PalmeiraLabs/InputFence.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.1.0 but the installed version is 6.0.2
error: fatalError
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/marmelroy/PhoneNumberKit.git
[1/7113] Fetching phonenumberkit
Fetched https://github.com/marmelroy/PhoneNumberKit.git from cache (1.00s)
Computing version for https://github.com/marmelroy/PhoneNumberKit.git
Computed https://github.com/marmelroy/PhoneNumberKit.git at 3.8.0 (3.27s)
Creating working copy for https://github.com/marmelroy/PhoneNumberKit.git
Working copy of https://github.com/marmelroy/PhoneNumberKit.git resolved at 3.8.0
Building for debugging...
[0/5] Write sources
[0/5] Copying PrivacyInfo.xcprivacy
[0/5] Copying PhoneNumberMetadata.json
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/23] Compiling PhoneNumberKit NSRegularExpression+Swift.swift
[7/23] Compiling PhoneNumberKit ParseManager.swift
[8/23] Compiling PhoneNumberKit PartialFormatter.swift
[9/25] Emitting module PhoneNumberKit
[10/25] Compiling PhoneNumberKit Bundle+Resources.swift
[11/25] Compiling PhoneNumberKit Constants.swift
[12/25] Compiling PhoneNumberKit Formatter.swift
[13/25] Compiling PhoneNumberKit CountryCodePickerOptions.swift
[14/25] Compiling PhoneNumberKit CountryCodePickerViewController.swift
[15/25] Compiling PhoneNumberKit PhoneNumberFormatter.swift
[16/25] Compiling PhoneNumberKit PhoneNumberKit.swift
[17/25] Compiling PhoneNumberKit PhoneNumberParser.swift
[18/25] Compiling PhoneNumberKit RegexManager.swift
[19/25] Compiling PhoneNumberKit PhoneNumber+Codable.swift
[20/25] Compiling PhoneNumberKit PhoneNumber.swift
[21/25] Compiling PhoneNumberKit MetadataManager.swift
[22/25] Compiling PhoneNumberKit MetadataParsing.swift
[23/25] Compiling PhoneNumberKit MetadataTypes.swift
[24/25] Compiling PhoneNumberKit PhoneNumberTextField.swift
[25/25] Compiling PhoneNumberKit resource_bundle_accessor.swift
[27/40] Compiling InputFence FieldValidatorAliases.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/41] Compiling InputFence AdvancedPhoneValidator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[29/41] Compiling InputFence FieldValidator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[30/41] Compiling InputFence AdvancedNameValidator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[31/41] Compiling InputFence PasswordValidatorParameters.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[32/41] Compiling InputFence AdvancedPasswordValidator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[33/41] Compiling InputFence PhoneValidatorParameters.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[34/41] Compiling InputFence ValidatorProtocol.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[35/41] Emitting module InputFence
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[36/41] Compiling InputFence DateOfBirthValidatorParameters.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[37/41] Compiling InputFence AdvancedDateOfBirthValidator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[38/41] Compiling InputFence SmartEmailValidator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:34:35: error: cannot find 'NSDataDetector' in scope
32 | /// - Returns: `true` if the string is detected as an email link covering the entire string, `false` otherwise.
33 | public func isValid(_ value: String) -> Bool {
34 | guard let detector = try? NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue) else {
| `- error: cannot find 'NSDataDetector' in scope
35 | return false
36 | }
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:41:24: error: type '(_) -> Bool' cannot conform to 'Collection'
39 |
40 | let matches: [NSTextCheckingResult] = detector.matches(in: value, options: [], range: range)
41 | return matches.contains { $0.url?.scheme == "mailto" && $0.range.length == value.count }
| |- error: type '(_) -> Bool' cannot conform to 'Collection'
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by instance method 'contains' where 'C' = '(_) -> Bool'
42 | }
43 | }
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:41:33: error: cannot infer type of closure parameter '$0' without a type annotation
39 |
40 | let matches: [NSTextCheckingResult] = detector.matches(in: value, options: [], range: range)
41 | return matches.contains { $0.url?.scheme == "mailto" && $0.range.length == value.count }
| `- error: cannot infer type of closure parameter '$0' without a type annotation
42 | }
43 | }
[39/41] Compiling InputFence NameValidatorParameters.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:34:35: error: cannot find 'NSDataDetector' in scope
32 | /// - Returns: `true` if the string is detected as an email link covering the entire string, `false` otherwise.
33 | public func isValid(_ value: String) -> Bool {
34 | guard let detector = try? NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue) else {
| `- error: cannot find 'NSDataDetector' in scope
35 | return false
36 | }
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:41:24: error: type '(_) -> Bool' cannot conform to 'Collection'
39 |
40 | let matches: [NSTextCheckingResult] = detector.matches(in: value, options: [], range: range)
41 | return matches.contains { $0.url?.scheme == "mailto" && $0.range.length == value.count }
| |- error: type '(_) -> Bool' cannot conform to 'Collection'
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by instance method 'contains' where 'C' = '(_) -> Bool'
42 | }
43 | }
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:41:33: error: cannot infer type of closure parameter '$0' without a type annotation
39 |
40 | let matches: [NSTextCheckingResult] = detector.matches(in: value, options: [], range: range)
41 | return matches.contains { $0.url?.scheme == "mailto" && $0.range.length == value.count }
| `- error: cannot infer type of closure parameter '$0' without a type annotation
42 | }
43 | }
[40/41] Compiling InputFence RFCCompliantEmailValidator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/RFCCompliantEmailValidator.swift:44:30: 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 | let emailRegEx = "(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|[a-zA-Z0-9-]*[a-zA-Z0-9]:.+)\\])"
43 |
44 | let emailPredicate = NSPredicate(format:"SELF MATCHES[c] %@", emailRegEx) // [c] case-insensitive
| `- 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 emailPredicate.evaluate(with: value)
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 |
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SimpleEmailValidator.swift:35:16: 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.
33 | public func isValid(_ value: String) -> Bool {
34 | let regex = "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$"
35 | return NSPredicate(format: "SELF MATCHES %@", regex).evaluate(with: value)
| `- 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.
36 | }
37 | }
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 |
[41/41] Compiling InputFence SimpleEmailValidator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/RFCCompliantEmailValidator.swift:44:30: 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 | let emailRegEx = "(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|[a-zA-Z0-9-]*[a-zA-Z0-9]:.+)\\])"
43 |
44 | let emailPredicate = NSPredicate(format:"SELF MATCHES[c] %@", emailRegEx) // [c] case-insensitive
| `- 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 emailPredicate.evaluate(with: value)
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 |
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SimpleEmailValidator.swift:35:16: 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.
33 | public func isValid(_ value: String) -> Bool {
34 | let regex = "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$"
35 | return NSPredicate(format: "SELF MATCHES %@", regex).evaluate(with: value)
| `- 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.
36 | }
37 | }
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 |
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/19] Compiling PhoneNumberKit CountryCodePickerOptions.swift
[3/19] Compiling PhoneNumberKit CountryCodePickerViewController.swift
[4/21] Compiling PhoneNumberKit PhoneNumberTextField.swift
[5/21] Compiling PhoneNumberKit resource_bundle_accessor.swift
[6/21] Emitting module PhoneNumberKit
[7/21] Compiling PhoneNumberKit PhoneNumberFormatter.swift
[8/21] Compiling PhoneNumberKit PhoneNumberKit.swift
[9/21] Compiling PhoneNumberKit Bundle+Resources.swift
[10/21] Compiling PhoneNumberKit Constants.swift
[11/21] Compiling PhoneNumberKit Formatter.swift
[12/21] Compiling PhoneNumberKit PhoneNumberParser.swift
[13/21] Compiling PhoneNumberKit RegexManager.swift
[14/21] Compiling PhoneNumberKit NSRegularExpression+Swift.swift
[15/21] Compiling PhoneNumberKit ParseManager.swift
[16/21] Compiling PhoneNumberKit PartialFormatter.swift
[17/21] Compiling PhoneNumberKit PhoneNumber+Codable.swift
[18/21] Compiling PhoneNumberKit PhoneNumber.swift
[19/21] Compiling PhoneNumberKit MetadataManager.swift
[20/21] Compiling PhoneNumberKit MetadataParsing.swift
[21/21] Compiling PhoneNumberKit MetadataTypes.swift
[23/36] Compiling InputFence FieldValidatorAliases.swift
[24/37] Compiling InputFence AdvancedNameValidator.swift
[25/37] Compiling InputFence PasswordValidatorParameters.swift
[26/37] Compiling InputFence AdvancedPhoneValidator.swift
[27/37] Compiling InputFence FieldValidator.swift
[28/37] Compiling InputFence AdvancedPasswordValidator.swift
[29/37] Compiling InputFence PhoneValidatorParameters.swift
[30/37] Compiling InputFence ValidatorProtocol.swift
[31/37] Emitting module InputFence
[32/37] Compiling InputFence DateOfBirthValidatorParameters.swift
[33/37] Compiling InputFence AdvancedDateOfBirthValidator.swift
[34/37] Compiling InputFence SmartEmailValidator.swift
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:34:35: error: cannot find 'NSDataDetector' in scope
32 | /// - Returns: `true` if the string is detected as an email link covering the entire string, `false` otherwise.
33 | public func isValid(_ value: String) -> Bool {
34 | guard let detector = try? NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue) else {
| `- error: cannot find 'NSDataDetector' in scope
35 | return false
36 | }
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:41:24: error: type '(_) -> Bool' cannot conform to 'Collection'
39 |
40 | let matches: [NSTextCheckingResult] = detector.matches(in: value, options: [], range: range)
41 | return matches.contains { $0.url?.scheme == "mailto" && $0.range.length == value.count }
| |- error: type '(_) -> Bool' cannot conform to 'Collection'
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by instance method 'contains' where 'C' = '(_) -> Bool'
42 | }
43 | }
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:41:33: error: cannot infer type of closure parameter '$0' without a type annotation
39 |
40 | let matches: [NSTextCheckingResult] = detector.matches(in: value, options: [], range: range)
41 | return matches.contains { $0.url?.scheme == "mailto" && $0.range.length == value.count }
| `- error: cannot infer type of closure parameter '$0' without a type annotation
42 | }
43 | }
[35/37] Compiling InputFence NameValidatorParameters.swift
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:34:35: error: cannot find 'NSDataDetector' in scope
32 | /// - Returns: `true` if the string is detected as an email link covering the entire string, `false` otherwise.
33 | public func isValid(_ value: String) -> Bool {
34 | guard let detector = try? NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue) else {
| `- error: cannot find 'NSDataDetector' in scope
35 | return false
36 | }
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:41:24: error: type '(_) -> Bool' cannot conform to 'Collection'
39 |
40 | let matches: [NSTextCheckingResult] = detector.matches(in: value, options: [], range: range)
41 | return matches.contains { $0.url?.scheme == "mailto" && $0.range.length == value.count }
| |- error: type '(_) -> Bool' cannot conform to 'Collection'
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by instance method 'contains' where 'C' = '(_) -> Bool'
42 | }
43 | }
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SmartEmailValidator.swift:41:33: error: cannot infer type of closure parameter '$0' without a type annotation
39 |
40 | let matches: [NSTextCheckingResult] = detector.matches(in: value, options: [], range: range)
41 | return matches.contains { $0.url?.scheme == "mailto" && $0.range.length == value.count }
| `- error: cannot infer type of closure parameter '$0' without a type annotation
42 | }
43 | }
[36/37] Compiling InputFence RFCCompliantEmailValidator.swift
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/RFCCompliantEmailValidator.swift:44:30: 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 | let emailRegEx = "(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|[a-zA-Z0-9-]*[a-zA-Z0-9]:.+)\\])"
43 |
44 | let emailPredicate = NSPredicate(format:"SELF MATCHES[c] %@", emailRegEx) // [c] case-insensitive
| `- 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 emailPredicate.evaluate(with: value)
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 |
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SimpleEmailValidator.swift:35:16: 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.
33 | public func isValid(_ value: String) -> Bool {
34 | let regex = "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$"
35 | return NSPredicate(format: "SELF MATCHES %@", regex).evaluate(with: value)
| `- 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.
36 | }
37 | }
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 |
[37/37] Compiling InputFence SimpleEmailValidator.swift
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/RFCCompliantEmailValidator.swift:44:30: 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 | let emailRegEx = "(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|[a-zA-Z0-9-]*[a-zA-Z0-9]:.+)\\])"
43 |
44 | let emailPredicate = NSPredicate(format:"SELF MATCHES[c] %@", emailRegEx) // [c] case-insensitive
| `- 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 emailPredicate.evaluate(with: value)
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 |
/host/spi-builder-workspace/Sources/InputFence/EmailValidators/SpecificValidators/SimpleEmailValidator.swift:35:16: 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.
33 | public func isValid(_ value: String) -> Bool {
34 | let regex = "^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$"
35 | return NSPredicate(format: "SELF MATCHES %@", regex).evaluate(with: value)
| `- 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.
36 | }
37 | }
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 |
BUILD FAILURE 6.1 android