The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MPUtils 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/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:             5.10
Building package at path:  $workDir
https://github.com/martinpucik/mputils.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/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling MPUtilsUIKit UITableViewCellExtension.swift
[5/14] Compiling MPUtilsUIKit MPUInputAccessoryKeyboardView.swift
[6/14] Compiling MPUtilsUIKit UIViewExtension.swift
[7/14] Compiling MPUtilsUIKit UIViewControllerExtension.swift
[8/14] Compiling MPUtilsUIKit UITableViewExtension.swift
[9/14] Compiling MPUtilsUIKit UIColorExtension.swift
[10/14] Compiling MPUtilsUIKit UIControlExtension.swift
[11/14] Compiling MPUtilsUIKit UINavigationControllerExtension.swift
[12/14] Emitting module MPUtilsUIKit
[13/14] Compiling MPUtilsUIKit UIApplicationExtension.swift
[14/14] Compiling MPUtilsUIKit UIBarButtonItemExtension.swift
[16/23] Compiling MPUtils NSTextAttachmentExtension.swift
[17/24] Compiling MPUtils Logger.swift
[18/24] Compiling MPUtils URLExtension.swift
[19/24] Compiling MPUtils NSAttributedStringExtension.swift
[20/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
        let formatter = DateComponentsFormatter()
                        ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
           ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/24] Compiling MPUtils CollectionExtension.swift
[22/24] Emitting module MPUtils
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:13:45: error: cannot find type 'Selector' in scope
public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
                                            ^~~~~~~~
[23/24] Compiling MPUtils World.swift
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:13:45: error: cannot find type 'Selector' in scope
public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
                                            ^~~~~~~~
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:64: error: extra argument 'selector' in call
    NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
                                          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:84: error: missing argument for parameter 'using' in call
    NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
                                                                                   ^
                                                                                   , using: <#(Notification) -> Void#>
Foundation.NotificationCenter:10:15: note: 'addObserver(forName:object:queue:using:)' declared here
    open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> any NSObjectProtocol
              ^
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:44: error: cannot convert value of type 'Any' to expected argument type 'NSNotification.Name?'
    NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
                                           ^
                                                    as! NSNotification.Name
/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?'
    NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
                                                                               ^
[24/24] Compiling MPUtils StringExtension.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling MPUtils World.swift
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:13:45: error: cannot find type 'Selector' in scope
public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
                                            ^~~~~~~~
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:64: error: extra argument 'selector' in call
    NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
                                          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:84: error: missing argument for parameter 'using' in call
    NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
                                                                                   ^
                                                                                   , using: <#(Notification) -> Void#>
Foundation.NotificationCenter:10:15: note: 'addObserver(forName:object:queue:using:)' declared here
    open func addObserver(forName name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Void) -> any NSObjectProtocol
              ^
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:14:44: error: cannot convert value of type 'Any' to expected argument type 'NSNotification.Name?'
    NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
                                           ^
                                                    as! NSNotification.Name
/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?'
    NotificationCenter.default.addObserver(observer, selector: selector, name: name, object: obj)
                                                                               ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module MPUtils
/host/spi-builder-workspace/Sources/MPUtils/Utilities/World.swift:13:45: error: cannot find type 'Selector' in scope
public func NC_ADD(observer: Any, selector: Selector, name: Notification.Name, obj: Any? = nil) {
                                            ^~~~~~~~
[4/4] 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
        let formatter = DateComponentsFormatter()
                        ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
           ^
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2