The Swift Package Index logo.Swift Package Index

Build Information

Failed to build trash with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aerobounce/trash.swift.git
Reference: master
Cloned https://github.com/aerobounce/trash.swift.git into spi-builder-workspace
SUCCESS checkout https://github.com/aerobounce/trash.swift.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-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))
                                     ~^~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2