The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RadioBrowserKit with Swift 5.9 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/phranck/RadioBrowserKit.git
Reference: v0.1.3
Cloned https://github.com/phranck/RadioBrowserKit.git into spi-builder-workspace
SUCCESS checkout https://github.com/phranck/RadioBrowserKit.git at v0.1.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/sharplet/Regex.git
Fetching https://github.com/nbasham/CloudUserDefaults.git
Fetching https://github.com/SwiftyBeaver/SwiftyBeaver.git
[1/1254] Fetching regex
Fetching https://github.com/ArtSabintsev/Zephyr.git
Fetched https://github.com/nbasham/CloudUserDefaults.git (0.22s)
[817/4991] Fetching regex, swiftybeaver
[4579/10045] Fetching regex, swiftybeaver, zephyr
Fetched https://github.com/SwiftyBeaver/SwiftyBeaver.git (0.82s)
[4893/6308] Fetching regex, zephyr
Fetched https://github.com/sharplet/Regex.git (0.83s)
[3791/5054] Fetching zephyr
Fetched https://github.com/ArtSabintsev/Zephyr.git (0.76s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.1 (1.18s)
Computing version for https://github.com/SwiftyBeaver/SwiftyBeaver.git
Computed https://github.com/SwiftyBeaver/SwiftyBeaver.git at 1.9.6 (0.31s)
Computing version for https://github.com/ArtSabintsev/Zephyr.git
Computed https://github.com/ArtSabintsev/Zephyr.git at 3.7.1 (0.34s)
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.1
Creating working copy for https://github.com/SwiftyBeaver/SwiftyBeaver.git
Working copy of https://github.com/SwiftyBeaver/SwiftyBeaver.git resolved at 1.9.6
Creating working copy for https://github.com/ArtSabintsev/Zephyr.git
Working copy of https://github.com/ArtSabintsev/Zephyr.git resolved at 3.7.1
Building for debugging...
[1/20] Emitting module Regex
[2/20] Emitting module SwiftyBeaver
[3/21] Compiling Zephyr Zephyr.swift
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
@objcMembers
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:429:94: error: cannot find type 'NSKeyValueChangeKey' in scope
    public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
                                                                                             ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:429:26: error: method does not override any method from its superclass
    public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
           ~~~~~~~~      ^
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:449:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:59:16: error: cannot find 'NSUbiquitousKeyValueStore' in scope
        return NSUbiquitousKeyValueStore.default.dictionaryRepresentation
               ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:71:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
        NSUbiquitousKeyValueStore.default.synchronize()
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:78:30: error: value of type 'UserDefaults' has no member 'removeObserver'
                userDefaults.removeObserver(self, forKeyPath: key)
                ~~~~~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:225:54: error: cannot find 'NSUbiquitousKeyValueStore' in scope
                                               name: NSUbiquitousKeyValueStore.didChangeExternallyNotification,
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:224:64: error: '#selector' can only be used with the Objective-C runtime
        NotificationCenter.default.addObserver(self, selector: #selector(keysDidChangeOnCloud(notification:)),
                                                               ^
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:312:31: error: cannot find 'NSUbiquitousKeyValueStore' in scope
        let ubiquitousStore = NSUbiquitousKeyValueStore.default
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:336:13: error: cannot find 'NSUbiquitousKeyValueStore' in scope
            NSUbiquitousKeyValueStore.default.removeObject(forKey: key)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:402:26: error: value of type 'UserDefaults' has no member 'addObserver'
            userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
            ~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:402:71: error: cannot infer contextual base in reference to member 'new'
            userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
                                                                     ~^~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:402:85: error: 'nil' requires a contextual type
            userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
                                                                                    ^
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:421:26: error: value of type 'UserDefaults' has no member 'removeObserver'
            userDefaults.removeObserver(self, forKeyPath: key, context: nil)
            ~~~~~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:421:73: error: 'nil' requires a contextual type
            userDefaults.removeObserver(self, forKeyPath: key, context: nil)
                                                                        ^
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:454:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
        NSUbiquitousKeyValueStore.default.synchronize()
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:459:33: error: cannot find 'NSUbiquitousKeyValueStore' in scope
        if notification.name == NSUbiquitousKeyValueStore.didChangeExternallyNotification {
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:461:42: error: cannot find 'NSUbiquitousKeyValueStoreChangedKeysKey' in scope
                let cloudKeys = userInfo[NSUbiquitousKeyValueStoreChangedKeysKey] as? [String],
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/21] Emitting module Zephyr
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
@objcMembers
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:429:94: error: cannot find type 'NSKeyValueChangeKey' in scope
    public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
                                                                                             ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:429:26: error: method does not override any method from its superclass
    public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
           ~~~~~~~~      ^
/host/spi-builder-workspace/.build/checkouts/Zephyr/Sources/Zephyr.swift:449:2: error: Objective-C interoperability is disabled
@objc
~^~~~
error: fatalError
[5/21] Compiling Regex String+ReplaceMatching.swift
BUILD FAILURE 5.9 linux

Build Machine: Linux 2