Build Information
Failed to build swift-mail-automation, reference main (cd1d21), with Swift 6.2 for Linux on 4 May 2026 04:05:14 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chrischall/swift-mail-automation.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/chrischall/swift-mail-automation
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at cd1d21e chore: add dependabot config
Cloned https://github.com/chrischall/swift-mail-automation.git
Revision (git rev-parse @):
cd1d21e8ab513d3ba37bf45ba1bac7dd36a566af
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/chrischall/swift-mail-automation.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/chrischall/swift-mail-automation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:0ddb100795e64f71518020a73ad8441aeb43832ede7f1202ae7f8de93664f90d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-log.git
[1/6811] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.54s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.95s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling Logging MetadataProvider.swift
[5/9] Compiling Logging Locks.swift
[6/9] Compiling Logging LogEvent.swift
[7/9] Emitting module Logging
[8/9] Compiling Logging LogHandler.swift
[9/9] Compiling Logging Logging.swift
[11/18] Compiling MailAutomation StringHelpers.swift
[12/18] Compiling MailAutomation NSAppleScriptRunner.swift
/host/spi-builder-workspace/Sources/MailAutomation/NSAppleScriptRunner.swift:27:32: error: cannot find 'NSAppleScript' in scope
25 | // inside a detached Task so its lifecycle stays on one thread.
26 | try await Task.detached(priority: .userInitiated) { () throws -> String in
27 | guard let script = NSAppleScript(source: source) else {
| `- error: cannot find 'NSAppleScript' in scope
28 | throw AppleScriptError.compile("Failed to construct NSAppleScript")
29 | }
/host/spi-builder-workspace/Sources/MailAutomation/NSAppleScriptRunner.swift:33:37: error: cannot find 'NSAppleScript' in scope
31 | let descriptor = script.executeAndReturnError(&errorInfo)
32 | if let errorInfo {
33 | let msg = errorInfo[NSAppleScript.errorMessage] as? String
| `- error: cannot find 'NSAppleScript' in scope
34 | ?? errorInfo[NSAppleScript.errorBriefMessage] as? String
35 | ?? "AppleScript error \(errorInfo[NSAppleScript.errorNumber] ?? "?")"
/host/spi-builder-workspace/Sources/MailAutomation/NSAppleScriptRunner.swift:34:34: error: cannot find 'NSAppleScript' in scope
32 | if let errorInfo {
33 | let msg = errorInfo[NSAppleScript.errorMessage] as? String
34 | ?? errorInfo[NSAppleScript.errorBriefMessage] as? String
| `- error: cannot find 'NSAppleScript' in scope
35 | ?? "AppleScript error \(errorInfo[NSAppleScript.errorNumber] ?? "?")"
36 | throw AppleScriptError.runtime(msg)
/host/spi-builder-workspace/Sources/MailAutomation/NSAppleScriptRunner.swift:35:55: error: cannot find 'NSAppleScript' in scope
33 | let msg = errorInfo[NSAppleScript.errorMessage] as? String
34 | ?? errorInfo[NSAppleScript.errorBriefMessage] as? String
35 | ?? "AppleScript error \(errorInfo[NSAppleScript.errorNumber] ?? "?")"
| `- error: cannot find 'NSAppleScript' in scope
36 | throw AppleScriptError.runtime(msg)
37 | }
/host/spi-builder-workspace/Sources/MailAutomation/NSAppleScriptRunner.swift:26:13: warning: no 'async' operations occur within 'await' expression
24 | // NSAppleScript isn't Sendable; construct + execute it entirely
25 | // inside a detached Task so its lifecycle stays on one thread.
26 | try await Task.detached(priority: .userInitiated) { () throws -> String in
| `- warning: no 'async' operations occur within 'await' expression
27 | guard let script = NSAppleScript(source: source) else {
28 | throw AppleScriptError.compile("Failed to construct NSAppleScript")
/host/spi-builder-workspace/Sources/MailAutomation/NSAppleScriptRunner.swift:26:9: warning: no calls to throwing functions occur within 'try' expression
24 | // NSAppleScript isn't Sendable; construct + execute it entirely
25 | // inside a detached Task so its lifecycle stays on one thread.
26 | try await Task.detached(priority: .userInitiated) { () throws -> String in
| `- warning: no calls to throwing functions occur within 'try' expression
27 | guard let script = NSAppleScript(source: source) else {
28 | throw AppleScriptError.compile("Failed to construct NSAppleScript")
[13/18] Compiling MailAutomation SpotlightMailSearch.swift
[14/18] Compiling MailAutomation EmailMessage.swift
[15/18] Compiling MailAutomation AppleScriptRunner.swift
[16/18] Emitting module MailAutomation
[17/18] Compiling MailAutomation ISODate.swift
[18/18] Compiling MailAutomation MailService.swift
BUILD FAILURE 6.2 linux