This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Screeen with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Clipy/Screeen.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/Clipy/Screeen
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
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-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 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
11 | import Foundation
12 |
13 | @objc
   |  `- error: Objective-C interoperability is disabled
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:92: error: cannot find type 'NSMetadataItem' in scope
13 | @objc
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
   |                                                                                            `- error: cannot find type 'NSMetadataItem' in scope
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:11: error: 'optional' can only be applied to members of an @objc protocol
13 | @objc
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
   |           `- error: 'optional' can only be applied to members of an @objc protocol
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem 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
13 | @objc
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
   |      `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:94: error: cannot find type 'NSMetadataItem' in scope
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
   |                                                                                              `- error: cannot find type 'NSMetadataItem' in scope
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
18 | }
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:11: error: 'optional' can only be applied to members of an @objc protocol
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
   |           `- error: 'optional' can only be applied to members of an @objc protocol
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
18 | }
/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
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
   |      `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
18 | }
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:94: error: cannot find type 'NSMetadataItem' in scope
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
   |                                                                                              `- error: cannot find type 'NSMetadataItem' in scope
18 | }
19 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:11: error: 'optional' can only be applied to members of an @objc protocol
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
   |           `- error: 'optional' can only be applied to members of an @objc protocol
18 | }
19 |
/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
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
   |      `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
18 | }
19 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:27:25: error: cannot find 'NSMetadataQuery' in scope
25 |
26 |     private static let desktopDirectoryPath: String? = NSSearchPathForDirectoriesInDomains(.desktopDirectory, .userDomainMask, true).first
27 |     private let query = NSMetadataQuery()
   |                         `- error: cannot find 'NSMetadataQuery' in scope
28 |     private let notificationCenter: NotificationCenter
29 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:71:6: error: Objective-C interoperability is disabled
69 |
70 |     // MARK: - Notification
71 |     @objc func updateQuery(_ notification: Notification) {
   |      `- error: Objective-C interoperability is disabled
72 |         guard isEnabled else { return }
73 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:84:31: error: cannot find type 'NSMetadataQueryDelegate' in scope
82 | }
83 |
84 | extension ScreenShotObserver: NSMetadataQueryDelegate {}
   |                               `- error: cannot find type 'NSMetadataQueryDelegate' in scope
85 |
[4/4] Compiling Screeen ScreenShotObserver.swift
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:13:2: error: Objective-C interoperability is disabled
11 | import Foundation
12 |
13 | @objc
   |  `- error: Objective-C interoperability is disabled
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:92: error: cannot find type 'NSMetadataItem' in scope
13 | @objc
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
   |                                                                                            `- error: cannot find type 'NSMetadataItem' in scope
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:15:11: error: 'optional' can only be applied to members of an @objc protocol
13 | @objc
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
   |           `- error: 'optional' can only be applied to members of an @objc protocol
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem 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
13 | @objc
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
   |      `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:94: error: cannot find type 'NSMetadataItem' in scope
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
   |                                                                                              `- error: cannot find type 'NSMetadataItem' in scope
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
18 | }
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:16:11: error: 'optional' can only be applied to members of an @objc protocol
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
   |           `- error: 'optional' can only be applied to members of an @objc protocol
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
18 | }
/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
14 | public protocol ScreenShotObserverDelegate: AnyObject {
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
   |      `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
18 | }
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:94: error: cannot find type 'NSMetadataItem' in scope
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
   |                                                                                              `- error: cannot find type 'NSMetadataItem' in scope
18 | }
19 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:17:11: error: 'optional' can only be applied to members of an @objc protocol
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
   |           `- error: 'optional' can only be applied to members of an @objc protocol
18 | }
19 |
/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
15 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, addedItem item: NSMetadataItem)
16 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, updatedItem item: NSMetadataItem)
17 |     @objc optional func screenShotObserver(_ observer: ScreenShotObserver, removedItem item: NSMetadataItem)
   |      `- error: @objc can only be used with members of classes, @objc protocols, and concrete extensions of classes
18 | }
19 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:27:25: error: cannot find 'NSMetadataQuery' in scope
25 |
26 |     private static let desktopDirectoryPath: String? = NSSearchPathForDirectoriesInDomains(.desktopDirectory, .userDomainMask, true).first
27 |     private let query = NSMetadataQuery()
   |                         `- error: cannot find 'NSMetadataQuery' in scope
28 |     private let notificationCenter: NotificationCenter
29 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:71:6: error: Objective-C interoperability is disabled
69 |
70 |     // MARK: - Notification
71 |     @objc func updateQuery(_ notification: Notification) {
   |      `- error: Objective-C interoperability is disabled
72 |         guard isEnabled else { return }
73 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:84:31: error: cannot find type 'NSMetadataQueryDelegate' in scope
82 | }
83 |
84 | extension ScreenShotObserver: NSMetadataQueryDelegate {}
   |                               `- error: cannot find type 'NSMetadataQueryDelegate' in scope
85 |
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:44:50: error: '#selector' can only be used with the Objective-C runtime
42 |         // Observe update notification
43 |         notificationCenter.addObserver(self,
44 |                                        selector: #selector(ScreenShotObserver.updateQuery(_:)),
   |                                                  `- error: '#selector' can only be used with the Objective-C runtime
45 |                                        name: NSNotification.Name.NSMetadataQueryDidUpdate,
46 |                                        object: query)
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:74:47: error: cannot find 'kMDQueryUpdateAddedItems' in scope
72 |         guard isEnabled else { return }
73 |
74 |         if let items = notification.userInfo?[kMDQueryUpdateAddedItems as String] as? [NSMetadataItem] {
   |                                               `- error: cannot find 'kMDQueryUpdateAddedItems' in scope
75 |             items.forEach { delegate?.screenShotObserver?(self, addedItem: $0) }
76 |         } else if let items = notification.userInfo?[kMDQueryUpdateChangedItems as String] as? [NSMetadataItem] {
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:74:88: error: cannot find type 'NSMetadataItem' in scope
72 |         guard isEnabled else { return }
73 |
74 |         if let items = notification.userInfo?[kMDQueryUpdateAddedItems as String] as? [NSMetadataItem] {
   |                                                                                        `- error: cannot find type 'NSMetadataItem' in scope
75 |             items.forEach { delegate?.screenShotObserver?(self, addedItem: $0) }
76 |         } else if let items = notification.userInfo?[kMDQueryUpdateChangedItems as String] as? [NSMetadataItem] {
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:76:54: error: cannot find 'kMDQueryUpdateChangedItems' in scope
74 |         if let items = notification.userInfo?[kMDQueryUpdateAddedItems as String] as? [NSMetadataItem] {
75 |             items.forEach { delegate?.screenShotObserver?(self, addedItem: $0) }
76 |         } else if let items = notification.userInfo?[kMDQueryUpdateChangedItems as String] as? [NSMetadataItem] {
   |                                                      `- error: cannot find 'kMDQueryUpdateChangedItems' in scope
77 |             items.forEach { delegate?.screenShotObserver?(self, updatedItem: $0) }
78 |         } else if let items = notification.userInfo?[kMDQueryUpdateRemovedItems as String] as? [NSMetadataItem] {
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:76:97: error: cannot find type 'NSMetadataItem' in scope
74 |         if let items = notification.userInfo?[kMDQueryUpdateAddedItems as String] as? [NSMetadataItem] {
75 |             items.forEach { delegate?.screenShotObserver?(self, addedItem: $0) }
76 |         } else if let items = notification.userInfo?[kMDQueryUpdateChangedItems as String] as? [NSMetadataItem] {
   |                                                                                                 `- error: cannot find type 'NSMetadataItem' in scope
77 |             items.forEach { delegate?.screenShotObserver?(self, updatedItem: $0) }
78 |         } else if let items = notification.userInfo?[kMDQueryUpdateRemovedItems as String] as? [NSMetadataItem] {
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:78:54: error: cannot find 'kMDQueryUpdateRemovedItems' in scope
76 |         } else if let items = notification.userInfo?[kMDQueryUpdateChangedItems as String] as? [NSMetadataItem] {
77 |             items.forEach { delegate?.screenShotObserver?(self, updatedItem: $0) }
78 |         } else if let items = notification.userInfo?[kMDQueryUpdateRemovedItems as String] as? [NSMetadataItem] {
   |                                                      `- error: cannot find 'kMDQueryUpdateRemovedItems' in scope
79 |             items.forEach { delegate?.screenShotObserver?(self, removedItem: $0) }
80 |         }
/host/spi-builder-workspace/Lib/Screeen/ScreenShotObserver.swift:78:97: error: cannot find type 'NSMetadataItem' in scope
76 |         } else if let items = notification.userInfo?[kMDQueryUpdateChangedItems as String] as? [NSMetadataItem] {
77 |             items.forEach { delegate?.screenShotObserver?(self, updatedItem: $0) }
78 |         } else if let items = notification.userInfo?[kMDQueryUpdateRemovedItems as String] as? [NSMetadataItem] {
   |                                                                                                 `- error: cannot find type 'NSMetadataItem' in scope
79 |             items.forEach { delegate?.screenShotObserver?(self, removedItem: $0) }
80 |         }
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.