Build Information
Failed to build CloudUserDefaults, reference main (594daa), with Swift 6.3 for Wasm on 19 Apr 2026 07:45:49 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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
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.3
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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-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:41:50: error: extra arguments at positions #2, #3 in call
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: extra arguments at positions #2, #3 in call
42 | for (key, value) in dict {
43 | if key.hasPrefix(prefix) {
FoundationEssentials.NotificationCenter.removeObserver:3:15: note: 'removeObserver' declared here
1 | class NotificationCenter {
2 | @available(macOS 15, iOS 18, tvOS 18, watchOS 11, *)
3 | public func removeObserver(_ token: NotificationCenter.ObservationToken)}
| `- note: 'removeObserver' declared here
4 |
/host/spi-builder-workspace/Sources/CloudUserDefaults/CloudUserDefaults.swift:41:51: error: cannot convert value of type 'CloudUserDefaults' to expected argument type 'NotificationCenter.ObservationToken'
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 convert value of type 'CloudUserDefaults' to expected argument type 'NotificationCenter.ObservationToken'
42 | for (key, value) in dict {
43 | if key.hasPrefix(prefix) {
/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:36: error: no exact matches in call to instance method 'post'
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: no exact matches in call to instance method 'post'
| |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
| `- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
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.3 wasm