Build Information
Failed to build RadioTimeKit 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/RadioTimeKit.git
Reference: develop
Cloned https://github.com/phranck/RadioTimeKit.git into spi-builder-workspace
SUCCESS checkout https://github.com/phranck/RadioTimeKit.git at develop
========================================
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/realm/realm-cocoa.git
Fetching https://github.com/realm/realm-core
Fetching https://github.com/sharplet/Regex.git
[1/1254] Fetching regex
[1255/127994] Fetching regex, realm-cocoa
[48501/345146] Fetching regex, realm-cocoa, realm-core
Fetching https://github.com/nbasham/CloudUserDefaults.git
Fetched https://github.com/realm/realm-cocoa.git (15.75s)
Fetched https://github.com/nbasham/CloudUserDefaults.git (0.19s)
Fetched https://github.com/sharplet/Regex.git (18.46s)
Computing version for https://github.com/sharplet/Regex.git
Fetched https://github.com/realm/realm-core (18.62s)
Computed https://github.com/sharplet/Regex.git at 2.1.1 (1.18s)
Computing version for https://github.com/nbasham/CloudUserDefaults.git
Computed https://github.com/nbasham/CloudUserDefaults.git at 1.0.3 (0.28s)
Creating working copy for https://github.com/nbasham/CloudUserDefaults.git
Working copy of https://github.com/nbasham/CloudUserDefaults.git resolved at 1.0.3
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/9] Emitting module CloudUserDefaults
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:16:6: error: Objective-C interoperability is disabled
@objc internal func notificationFromCloud(notification: NSNotification) {
~^~~~~
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:35:6: error: Objective-C interoperability is disabled
@objc internal func notifyCloud(notification: NSNotification) {
~^~~~~
[2/9] Compiling CloudUserDefaults CloudUserDefaults.swift
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:16:6: error: Objective-C interoperability is disabled
@objc internal func notificationFromCloud(notification: NSNotification) {
~^~~~~
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:35:6: error: Objective-C interoperability is disabled
@objc internal func notifyCloud(notification: NSNotification) {
~^~~~~
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:12:119: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NotificationCenter.default.addObserver(self, selector: #selector(notificationFromCloud(notification:)), name: NSUbiquitousKeyValueStore.didChangeExternallyNotification, object: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:12:64: error: '#selector' can only be used with the Objective-C runtime
NotificationCenter.default.addObserver(self, selector: #selector(notificationFromCloud(notification:)), name: NSUbiquitousKeyValueStore.didChangeExternallyNotification, object: nil)
^
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:13:64: error: '#selector' can only be used with the Objective-C runtime
NotificationCenter.default.addObserver(self, selector: #selector(notifyCloud(notification:)), name: UserDefaults.didChangeNotification, object: nil)
^
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:17:20: error: cannot find 'NSUbiquitousKeyValueStore' in scope
let dict = NSUbiquitousKeyValueStore.default.dictionaryRepresentation
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:29:64: error: '#selector' can only be used with the Objective-C runtime
NotificationCenter.default.addObserver(self, selector: #selector(notifyCloud(notification:)), name: UserDefaults.didChangeNotification, object: nil)
^
/host/spi-builder-workspace/.build/checkouts/CloudUserDefaults/Sources/CloudUserDefaults/CloudUserDefaults.swift:39:17: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.set(value, forKey: key)
^~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
[3/9] Emitting module Regex
BUILD FAILURE 5.9 linux
Build Machine: Linux 2