Build Information
Failed to build Screeen 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/Clipy/Screeen.git
Reference: v2.1.0
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/Clipy/Screeen
* tag v2.1.0 -> FETCH_HEAD
HEAD is now at 357a72b Bump version to v2.1.0
Cloned https://github.com/Clipy/Screeen.git
Revision (git rev-parse @):
357a72be0060765a8e93b9a70b283fc63c75f4a9
SUCCESS checkout https://github.com/Clipy/Screeen.git at v2.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/Clipy/Screeen.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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] 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 {}
^~~~~~~~~~~~~~~~~~~~~~~
[4/4] 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:74:88: error: cannot find type 'NSMetadataItem' 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:76:97: error: cannot find type 'NSMetadataItem' 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] {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:78:97: error: cannot find type 'NSMetadataItem' in scope
} else if let items = notification.userInfo?[kMDQueryUpdateRemovedItems as String] as? [NSMetadataItem] {
^~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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 {}
^~~~~~~~~~~~~~~~~~~~~~~
[3/3] 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:74:88: error: cannot find type 'NSMetadataItem' 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:76:97: error: cannot find type 'NSMetadataItem' 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] {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:78:97: error: cannot find type 'NSMetadataItem' in scope
} else if let items = notification.userInfo?[kMDQueryUpdateRemovedItems as String] as? [NSMetadataItem] {
^~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux