The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CloudUserDefaults, reference 1.0.5 (594daa), with Swift 6.1 for Android on 23 Mar 2026 05:56:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build 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:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/nbasham/CloudUserDefaults.git
https://github.com/nbasham/CloudUserDefaults.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CloudUserDefaults",
  "name" : "CloudUserDefaults",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CloudUserDefaults",
      "targets" : [
        "CloudUserDefaults"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CloudUserDefaultsTests",
      "module_type" : "SwiftTarget",
      "name" : "CloudUserDefaultsTests",
      "path" : "Tests/CloudUserDefaultsTests",
      "sources" : [
        "CloudUserDefaultsTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CloudUserDefaults"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CloudUserDefaults",
      "module_type" : "SwiftTarget",
      "name" : "CloudUserDefaults",
      "path" : "Sources/CloudUserDefaults",
      "product_memberships" : [
        "CloudUserDefaults"
      ],
      "sources" : [
        "CloudUserDefaults.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:4aaa9704d9ec48004f0d4dbd1faa76d47dfce67570c934d5c9f7c1557cee5c73
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-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 |         }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:4aaa9704d9ec48004f0d4dbd1faa76d47dfce67570c934d5c9f7c1557cee5c73
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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 {
[3/3] 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.1 android