Build Information
Failed to build CloudUserDefaults, reference 1.0.5 (594daa), with Swift 6.0 for Linux on 23 Mar 2026 05:54:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nbasham/CloudUserDefaults.git
Reference: 1.0.5
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/nbasham/CloudUserDefaults
* tag 1.0.5 -> FETCH_HEAD
HEAD is now at 594daa5 Added WatchOS support.
Cloned https://github.com/nbasham/CloudUserDefaults.git
Revision (git rev-parse @):
594daa590e341fbe1408372d619c959eb4a91135
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/nbasham/CloudUserDefaults.git at 1.0.5
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/nbasham/CloudUserDefaults.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:ece747c77e94bae4930a5e18230daf779deb87c9e35c56d75daa73885bd2cdd2
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
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 CloudUserDefaults
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:38:6: error: Objective-C interoperability is disabled
36 | }
37 |
38 | @objc internal func notificationFromCloud(notification: NSNotification) {
| `- error: Objective-C interoperability is disabled
39 | let dict = NSUbiquitousKeyValueStore.default.dictionaryRepresentation
40 | // Disable notifications to cloud while we set local values from cloud
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:53:6: error: Objective-C interoperability is disabled
51 | }
52 |
53 | @objc internal func notifyCloud(notification: NSNotification) {
| `- error: Objective-C interoperability is disabled
54 | let dict = defaults.dictionaryRepresentation()
55 | for (key, value) in dict {
[4/4] Compiling CloudUserDefaults CloudUserDefaults.swift
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:38:6: error: Objective-C interoperability is disabled
36 | }
37 |
38 | @objc internal func notificationFromCloud(notification: NSNotification) {
| `- error: Objective-C interoperability is disabled
39 | let dict = NSUbiquitousKeyValueStore.default.dictionaryRepresentation
40 | // Disable notifications to cloud while we set local values from cloud
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:53:6: error: Objective-C interoperability is disabled
51 | }
52 |
53 | @objc internal func notifyCloud(notification: NSNotification) {
| `- error: Objective-C interoperability is disabled
54 | let dict = defaults.dictionaryRepresentation()
55 | for (key, value) in dict {
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:34:119: error: cannot find 'NSUbiquitousKeyValueStore' in scope
32 | public func start(prefix: String) {
33 | self.prefix = prefix
34 | NotificationCenter.default.addObserver(self, selector: #selector(notificationFromCloud(notification:)), name: NSUbiquitousKeyValueStore.didChangeExternallyNotification, object: nil)
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
35 | NotificationCenter.default.addObserver(self, selector: #selector(notifyCloud(notification:)), name: UserDefaults.didChangeNotification, object: defaults)
36 | }
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:34:64: error: '#selector' can only be used with the Objective-C runtime
32 | public func start(prefix: String) {
33 | self.prefix = prefix
34 | NotificationCenter.default.addObserver(self, selector: #selector(notificationFromCloud(notification:)), name: NSUbiquitousKeyValueStore.didChangeExternallyNotification, object: nil)
| `- error: '#selector' can only be used with the Objective-C runtime
35 | NotificationCenter.default.addObserver(self, selector: #selector(notifyCloud(notification:)), name: UserDefaults.didChangeNotification, object: defaults)
36 | }
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:35:64: error: '#selector' can only be used with the Objective-C runtime
33 | self.prefix = prefix
34 | NotificationCenter.default.addObserver(self, selector: #selector(notificationFromCloud(notification:)), name: NSUbiquitousKeyValueStore.didChangeExternallyNotification, object: nil)
35 | NotificationCenter.default.addObserver(self, selector: #selector(notifyCloud(notification:)), name: UserDefaults.didChangeNotification, object: defaults)
| `- error: '#selector' can only be used with the Objective-C runtime
36 | }
37 |
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:39:20: error: cannot find 'NSUbiquitousKeyValueStore' in scope
37 |
38 | @objc internal func notificationFromCloud(notification: NSNotification) {
39 | let dict = NSUbiquitousKeyValueStore.default.dictionaryRepresentation
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
40 | // Disable notifications to cloud while we set local values from cloud
41 | NotificationCenter.default.removeObserver(self, name: UserDefaults.didChangeNotification, object: defaults)
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:48:64: error: '#selector' can only be used with the Objective-C runtime
46 | }
47 | // Resume notifications to cloud
48 | NotificationCenter.default.addObserver(self, selector: #selector(notifyCloud(notification:)), name: UserDefaults.didChangeNotification, object: defaults)
| `- error: '#selector' can only be used with the Objective-C runtime
49 | // Send a message with cloud payload that app can listen to
50 | NotificationCenter.default.post(name: CloudUserDefaults.cloudSyncNotification, object: dict)
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:57:17: error: cannot find 'NSUbiquitousKeyValueStore' in scope
55 | for (key, value) in dict {
56 | if key.hasPrefix(prefix) {
57 | NSUbiquitousKeyValueStore.default.set(value, forKey: key)
| `- error: cannot find 'NSUbiquitousKeyValueStore' in scope
58 | }
59 | }
BUILD FAILURE 6.0 linux