The Swift Package Index logo.Swift Package Index

Build Information

Failed to build trash with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/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/aerobounce/trash.swift.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/aerobounce/trash.swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e03185a Declare Never
Cloned https://github.com/aerobounce/trash.swift.git
Revision (git rev-parse @):
e03185a417893ad4bd455648e237fde43ea0c56f
SUCCESS checkout https://github.com/aerobounce/trash.swift.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/aerobounce/trash.swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/7] Emitting module trash
[4/7] Compiling trash main.swift
/host/spi-builder-workspace/Sources/trash/main.swift:27:17: error: cannot find type 'NSAppleEventDescriptor' in scope
    let target: NSAppleEventDescriptor = .init(bundleIdentifier: "com.apple.finder")
                ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:28:16: error: cannot find type 'NSAppleEventDescriptor' in scope
    let event: NSAppleEventDescriptor = .init(eventClass: kAECoreSuite,
               ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:33:19: error: cannot find type 'NSAppleEventDescriptor' in scope
    let fileList: NSAppleEventDescriptor = fileURLs.enumerated().reduce(into: .init(listDescriptor: ())) {
                  ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:43:42: error: cannot find 'keyDirectObject' in scope
    event.setParam(fileList, forKeyword: keyDirectObject)
                                         ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:48:70: error: cannot find 'kAEDefaultTimeout' in scope
        try event.sendEvent(options: .noReply, timeout: TimeInterval(kAEDefaultTimeout))
                                                                     ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:48:39: error: cannot infer contextual base in reference to member 'noReply'
        try event.sendEvent(options: .noReply, timeout: TimeInterval(kAEDefaultTimeout))
                                     ~^~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-24593BA9C3E375BF.txt
[2/6] Emitting module trash
[3/6] Compiling trash main.swift
/host/spi-builder-workspace/Sources/trash/main.swift:27:17: error: cannot find type 'NSAppleEventDescriptor' in scope
    let target: NSAppleEventDescriptor = .init(bundleIdentifier: "com.apple.finder")
                ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:28:16: error: cannot find type 'NSAppleEventDescriptor' in scope
    let event: NSAppleEventDescriptor = .init(eventClass: kAECoreSuite,
               ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:33:19: error: cannot find type 'NSAppleEventDescriptor' in scope
    let fileList: NSAppleEventDescriptor = fileURLs.enumerated().reduce(into: .init(listDescriptor: ())) {
                  ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:43:42: error: cannot find 'keyDirectObject' in scope
    event.setParam(fileList, forKeyword: keyDirectObject)
                                         ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:48:70: error: cannot find 'kAEDefaultTimeout' in scope
        try event.sendEvent(options: .noReply, timeout: TimeInterval(kAEDefaultTimeout))
                                                                     ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/trash/main.swift:48:39: error: cannot infer contextual base in reference to member 'noReply'
        try event.sendEvent(options: .noReply, timeout: TimeInterval(kAEDefaultTimeout))
                                     ~^~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2