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 MPUtils, reference 0.3.7 (98ce61), with Swift 6.0 for Linux on 27 Nov 2024 05:25:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/martinpucik/mputils.git
Reference: 0.3.7
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/martinpucik/mputils
 * tag               0.3.7      -> FETCH_HEAD
HEAD is now at 98ce612 UINavigationController method availability
Cloned https://github.com/martinpucik/mputils.git
Revision (git rev-parse @):
98ce612dfa64c0377f44d6cb123f4e4b094575b0
SUCCESS checkout https://github.com/martinpucik/mputils.git at 0.3.7
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/martinpucik/mputils.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling MPUtilsUIKit UITableViewCellExtension.swift
[5/14] Compiling MPUtilsUIKit UINavigationControllerExtension.swift
[6/14] Compiling MPUtilsUIKit MPUInputAccessoryKeyboardView.swift
[7/14] Emitting module MPUtilsUIKit
[8/14] Compiling MPUtilsUIKit UIColorExtension.swift
[9/14] Compiling MPUtilsUIKit UIControlExtension.swift
[10/14] Compiling MPUtilsUIKit UIApplicationExtension.swift
[11/14] Compiling MPUtilsUIKit UIBarButtonItemExtension.swift
[12/14] Compiling MPUtilsUIKit UIViewControllerExtension.swift
[13/14] Compiling MPUtilsUIKit UITableViewExtension.swift
[14/14] Compiling MPUtilsUIKit UIViewExtension.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/23] Compiling MPUtils CollectionExtension.swift
[17/23] Emitting module MPUtils
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:13:45: error: cannot find type 'Selector' in scope
11 | // MARK: - Notifications
12 |
13 | public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
   |                                             `- error: cannot find type 'Selector' in scope
14 |     NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
15 | }
[18/24] Compiling MPUtils NSTextAttachmentExtension.swift
[19/24] Compiling MPUtils NSAttributedStringExtension.swift
[20/24] Compiling MPUtils StringExtension.swift
[21/24] Compiling MPUtils DateExtension.swift
/host/spi-builder-workspace/Sources/MPUtils/Extensions/DateExtension.swift:13:25: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
11 | public extension Date {
12 |     func remainingTimeString(toDate: Date) -> String? {
13 |         let formatter = DateComponentsFormatter()
   |                         `- error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
14 |         formatter.zeroFormattingBehavior = .default
15 |         formatter.allowedUnits = [.hour, .minute, .second]
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
 1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
 2 | open class DateComponentsFormatter : Formatter, @unchecked Sendable {
   |            `- note: 'DateComponentsFormatter' has been explicitly marked unavailable here
 3 |     public enum UnitsStyle : Int, Sendable {
 4 |         case positional
[22/24] Compiling MPUtils URLExtension.swift
[23/24] Compiling MPUtils Logger.swift
[24/24] Compiling MPUtils World.swift
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:13:45: error: cannot find type 'Selector' in scope
11 | // MARK: - Notifications
12 |
13 | public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
   |                                             `- error: cannot find type 'Selector' in scope
14 |     NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
15 | }
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:64: error: extra argument 'selector' in call
12 |
13 | public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
14 |     NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
   |                                                                `- error: extra argument 'selector' in call
15 | }
16 |
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:84: error: missing argument for parameter 'using' in call
12 |
13 | public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
14 |     NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
   |                                                                                    `- error: missing argument for parameter 'using' in call
15 | }
16 |
Foundation.NotificationCenter:10:15: note: 'addObserver(forName:object:queue:using:)' declared here
 8 |     @available(*, unavailable, renamed: "addObserver(forName:object:queue:using:)")
 9 |     open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, usingBlock block: @escaping (Notification) -> Void) -> any NSObjectProtocol
10 |     open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping @Sendable (Notification) -> Void) -> any NSObjectProtocol
   |               `- note: 'addObserver(forName:object:queue:using:)' declared here
11 |     deinit
12 | }
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:44: error: cannot convert value of type 'Any' to expected argument type 'NSNotification.Name?'
12 |
13 | public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
14 |     NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
   |                                            `- error: cannot convert value of type 'Any' to expected argument type 'NSNotification.Name?'
15 | }
16 |
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:80: error: cannot convert value of type 'Notification.Name' (aka 'NSNotification.Name') to expected argument type 'OperationQueue?'
12 |
13 | public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
14 |     NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
   |                                                                                `- error: cannot convert value of type 'Notification.Name' (aka 'NSNotification.Name') to expected argument type 'OperationQueue?'
15 | }
16 |
BUILD FAILURE 6.0 linux