Build Information
Failed to build CloudUserDefaults, reference main (594daa), with Swift 6.2 for Wasm on 23 Mar 2026 05:55:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nbasham/CloudUserDefaults.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/nbasham/CloudUserDefaults.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
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:9: error: cannot find 'NotificationCenter' 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 'NotificationCenter' 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: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:9: error: cannot find 'NotificationCenter' in scope
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: cannot find 'NotificationCenter' in scope
36 | }
37 |
/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:41:9: error: cannot find 'NotificationCenter' in scope
39 | let dict = NSUbiquitousKeyValueStore.default.dictionaryRepresentation
40 | // Disable notifications to cloud while we set local values from cloud
41 | NotificationCenter.default.removeObserver(self, name: UserDefaults.didChangeNotification, object: defaults)
| `- error: cannot find 'NotificationCenter' in scope
42 | for (key, value) in dict {
43 | if key.hasPrefix(prefix) {
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:48:9: error: cannot find 'NotificationCenter' in scope
46 | }
47 | // Resume notifications to cloud
48 | NotificationCenter.default.addObserver(self, selector: #selector(notifyCloud(notification:)), name: UserDefaults.didChangeNotification, object: defaults)
| `- error: cannot find 'NotificationCenter' in scope
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: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:50:9: error: cannot find 'NotificationCenter' in scope
48 | NotificationCenter.default.addObserver(self, selector: #selector(notifyCloud(notification:)), name: UserDefaults.didChangeNotification, object: defaults)
49 | // Send a message with cloud payload that app can listen to
50 | NotificationCenter.default.post(name: CloudUserDefaults.cloudSyncNotification, object: dict)
| `- error: cannot find 'NotificationCenter' in scope
51 | }
52 |
/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.2 wasm