Build Information
Failed to build trash with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.25.3
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.8
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/4] Emitting module trash
[2/4] 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))
~^~~~~~~
[0/1] Planning build
Building for debugging...
[1/4] Emitting module trash
[2/4] 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))
~^~~~~~~
BUILD FAILURE 5.8 linux