The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Screeen with Swift 5.7 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.23.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Clipy/Screeen.git
Reference: v2.1.0
Cloned https://github.com/Clipy/Screeen.git into spi-builder-workspace
SUCCESS checkout https://github.com/Clipy/Screeen.git at v2.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)[1/2] Emitting module Screeen
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:13:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:92: error: cannot find type 'NSMetadataItem' in scope
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
                                                                                           ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:11: error: 'optional' can only be applied to members of an @objc protocol
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
          ^~~~~~~~~
          
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
    ~^~~~~
    
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:94: error: cannot find type 'NSMetadataItem' in scope
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
                                                                                             ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:11: error: 'optional' can only be applied to members of an @objc protocol
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
          ^~~~~~~~~
          
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
    ~^~~~~
    
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:94: error: cannot find type 'NSMetadataItem' in scope
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
                                                                                             ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:11: error: 'optional' can only be applied to members of an @objc protocol
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
          ^~~~~~~~~
          
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
    ~^~~~~
    
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:27:25: error: cannot find 'NSMetadataQuery' in scope
    private let query = NSMetadataQuery()
                        ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:71:6: error: Objective-C interoperability is disabled
    @objc func updateQuery(_ notification: Notification) {
    ~^~~~~
    
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:84:31: error: cannot find type 'NSMetadataQueryDelegate' in scope
extension ScreenShotObserver: NSMetadataQueryDelegate {}
                              ^~~~~~~~~~~~~~~~~~~~~~~
[2/2] Compiling Screeen ScreenShotObserver.swift
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:13:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:92: error: cannot find type 'NSMetadataItem' in scope
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
                                                                                           ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:11: error: 'optional' can only be applied to members of an @objc protocol
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
          ^~~~~~~~~
          
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
    ~^~~~~
    
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:94: error: cannot find type 'NSMetadataItem' in scope
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
                                                                                             ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:11: error: 'optional' can only be applied to members of an @objc protocol
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
          ^~~~~~~~~
          
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
    ~^~~~~
    
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:94: error: cannot find type 'NSMetadataItem' in scope
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
                                                                                             ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:11: error: 'optional' can only be applied to members of an @objc protocol
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
          ^~~~~~~~~
          
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:6: error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
    @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
    ~^~~~~
    
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:27:25: error: cannot find 'NSMetadataQuery' in scope
    private let query = NSMetadataQuery()
                        ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:71:6: error: Objective-C interoperability is disabled
    @objc func updateQuery(_ notification: Notification) {
    ~^~~~~
    
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:84:31: error: cannot find type 'NSMetadataQueryDelegate' in scope
extension ScreenShotObserver: NSMetadataQueryDelegate {}
                              ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:44:50: error: '#selector' can only be used with the Objective-C runtime
                                       selector: #selector(ScreenShotObserver.updateQuery(_:)),
                                                 ^
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:58:26: error: 'nil' requires a contextual type
        query.delegate = nil
                         ^
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:74:47: error: cannot find 'kMDQueryUpdateAddedItems' in scope
        if let items = notification.userInfo?[kMDQueryUpdateAddedItems as String] as? [NSMetadataItem] {
                                              ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:76:54: error: cannot find 'kMDQueryUpdateChangedItems' in scope
        } else if let items = notification.userInfo?[kMDQueryUpdateChangedItems as String] as? [NSMetadataItem] {
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:78:54: error: cannot find 'kMDQueryUpdateRemovedItems' in scope
        } else if let items = notification.userInfo?[kMDQueryUpdateRemovedItems as String] as? [NSMetadataItem] {
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD FAILURE 5.7 linux

Build Machine: Linux 2