The Swift Package Index logo.Swift Package Index

Build Information

Failed to build EmailValidation, reference main (92fcfe), with Swift 6.4 for Android on 20 Sep 2026 07:14:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/josetorronteras/EmailValidationMacro.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/josetorronteras/EmailValidationMacro
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 92fcfe3 build(deps): bump github.com/apple/swift-syntax from 603.0.0 to 603.0.1 (#14)
Cloned https://github.com/josetorronteras/EmailValidationMacro.git
Revision (git rev-parse @):
92fcfe3e97d0313115b057f5048afee56b9b2331
SUCCESS checkout https://github.com/josetorronteras/EmailValidationMacro.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/josetorronteras/EmailValidationMacro.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-syntax.git
[1/79985] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git (3.07s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 603.0.2 (4.26s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 603.0.2
Building for debugging...
[Computing dependencies]
[Provisioning 25 / 26]
[Pre-planning 1 / 678]
[Planning deferred tasks]
[151 / 301] _SwiftSyntaxCShims
[189 / 311] SwiftSyntax
[197 / 315] SwiftSyntax603
[205 / 315] SwiftSyntax600
[210 / 317] SwiftSyntax510
[213 / 317] SwiftSyntax
[226 / 345] SwiftParser
[227 / 345] SwiftDiagnostics
[234 / 345] SwiftBasicFormat
[235 / 345] SwiftBasicFormat
[240 / 345] SwiftParser
[241 / 345] SwiftParser
[243 / 345] SwiftParser
[249 / 345] SwiftParser
[251 / 345] SwiftDiagnostics
[253 / 345] SwiftParser
[254 / 345] SwiftOperators
[257 / 345] SwiftDiagnostics
[260 / 346] SwiftBasicFormat
[269 / 358] SwiftBasicFormat
[272 / 367] SwiftParserDiagnostics
[273 / 368] SwiftParserDiagnostics
[284 / 368] SwiftParserDiagnostics
[285 / 368] SwiftParserDiagnostics
[287 / 368] SwiftParserDiagnostics
[288 / 368] SwiftOperators
[290 / 368] SwiftOperators
[293 / 368] SwiftOperators
[296 / 369] SwiftParserDiagnostics
[299 / 369] SwiftBasicFormat
[303 / 379] SwiftSyntaxBuilder
[304 / 379] SwiftSyntaxBuilder
[305 / 380] SwiftSyntaxBuilder
[306 / 380] SwiftSyntax
[308 / 380] SwiftSyntaxBuilder
[313 / 380] SwiftSyntaxBuilder
[319 / 390] SwiftIfConfig
[322 / 390] SwiftIfConfig
[323 / 390] SwiftIfConfig
[326 / 391] SwiftSyntaxBuilder
[337 / 401] SwiftSyntaxMacros
[339 / 401] SwiftSyntaxMacros
[342 / 401] SwiftSyntaxMacros
[349 / 402] SwiftSyntaxMacros
[354 / 412] SwiftSyntaxMacroExpansion
[358 / 412] SwiftSyntaxMacros
[360 / 413] SwiftSyntaxMacroExpansion
[370 / 423] SwiftSyntaxMacroExpansion
[371 / 423] SwiftCompilerPluginMessageHandling
[374 / 423] SwiftCompilerPluginMessageHandling
[376 / 423] SwiftCompilerPluginMessageHandling
[377 / 423] SwiftCompilerPluginMessageHandling
[385 / 426] SwiftCompilerPlugin
[390 / 427] SwiftCompilerPlugin
[394 / 428] SwiftCompilerPluginMessageHandling
[396 / 429] SwiftSyntax
[399 / 430] SwiftSyntax
[406 / 430] SwiftIfConfig
[415 / 431] EmailValidationMacros
[418 / 434] EmailValidationMacros
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/EmailValidationMacros/EmailValidationMacro.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile EmailValidationMacro.swift
[419 / 434] EmailValidationMacros
/host/spi-builder-workspace/Sources/EmailValidationMacros/EmailValidationMacro.swift:27:35: warning: 'argumentList' is deprecated: renamed to 'arguments' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
25 |         in context: some MacroExpansionContext
26 |     ) throws -> ExprSyntax {
27 |         guard let argument = node.argumentList.first?.expression,
   |                                   |- warning: 'argumentList' is deprecated: renamed to 'arguments' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
   |                                   `- note: use 'arguments' instead
28 |             let segments = argument.as(StringLiteralExprSyntax.self)?.segments,
29 |             segments.count == 1,
/host/spi-builder-workspace/Sources/EmailValidationMacros/EmailValidationMacro.swift:52:26: 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.
50 | func isValidEmail(_ email: String) -> Bool {
51 |     let emailRegex = #"^[\w\.-]+@[a-zA-Z\d-]+(?:\.[a-zA-Z\d-]+)*\.[a-zA-Z]{2,}$"#
52 |     let emailPredicate = NSPredicate(format: "SELF MATCHES %@", emailRegex)
   |                          `- 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.
53 |     return emailPredicate.evaluate(with: email)
54 | }
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 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Sources/EmailValidationMacros/EmailValidationMacro.swift /host/spi-builder-workspace/Sources/EmailValidationMacros/EmailValidationMacroError.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/Objects-normal/x86_64/EmailValidationMacro.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/Objects-normal/x86_64/EmailValidationMacro.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/Objects-normal/x86_64/EmailValidationMacro.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/Objects-normal/x86_64/EmailValidationMacro.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include/module.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name EmailValidationMacros -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/Objects-normal/x86_64/EmailValidationMacros_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/Objects-normal/x86_64/EmailValidationMacro.o -index-unit-output-path /EmailValidation.build/Debug-linux-x86_64/EmailValidationMacros-t.build/Objects-normal/x86_64/EmailValidationMacro.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android