The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftyUserDefaults, reference master (558c01), with Swift 6.4 for Android on 17 Sep 2026 14:17:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sunshinejr/SwiftyUserDefaults.git
Reference: master
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/sunshinejr/SwiftyUserDefaults
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 558c015 Update README.md
Cloned https://github.com/sunshinejr/SwiftyUserDefaults.git
Revision (git rev-parse @):
558c015e49524ebf5031b66980a722a4c225c302
SUCCESS checkout https://github.com/sunshinejr/SwiftyUserDefaults.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/sunshinejr/SwiftyUserDefaults.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Planning deferred tasks]
[28 / 36] SwiftyUserDefaults
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Defaults+Observing.swift:32:52: error: cannot find type 'NSKeyValueObservingOptions' in scope
30 |
31 |     func observe<T: DefaultsSerializable>(_ key: DefaultsKey<T>,
32 |                                           options: NSKeyValueObservingOptions = [.new, .old],
   |                                                    `- error: cannot find type 'NSKeyValueObservingOptions' in scope
33 |                                           handler: @escaping (DefaultsObserver<T>.Update) -> Void) -> DefaultsDisposable {
34 |         return defaults.observe(key, options: options, handler: handler)
/host/spi-builder-workspace/Sources/Defaults+Observing.swift:38:52: error: cannot find type 'NSKeyValueObservingOptions' in scope
36 |
37 |     func observe<T: DefaultsSerializable>(_ keyPath: KeyPath<KeyStore, DefaultsKey<T>>,
38 |                                           options: NSKeyValueObservingOptions = [.old, .new],
   |                                                    `- error: cannot find type 'NSKeyValueObservingOptions' in scope
39 |                                           handler: @escaping (DefaultsObserver<T>.Update) -> Void) -> DefaultsDisposable {
40 |         return defaults.observe(keyStore[keyPath: keyPath],
/host/spi-builder-workspace/Sources/Defaults+Observing.swift:48:75: error: cannot find type 'NSKeyValueObservingOptions' in scope
46 | public extension UserDefaults {
47 |
48 |     func observe<T: DefaultsSerializable>(_ key: DefaultsKey<T>, options: NSKeyValueObservingOptions = [.old, .new], handler: @escaping (DefaultsObserver<T>.Update) -> Void) -> DefaultsDisposable {
   |                                                                           `- error: cannot find type 'NSKeyValueObservingOptions' in scope
49 |         return DefaultsObserver(key: key, userDefaults: self, options: options, handler: handler)
50 |     }
/host/spi-builder-workspace/Sources/DefaultsObserver.swift:74:68: error: cannot find type 'NSKeyValueObservingOptions' in scope
 72 |     private var didRemoveObserver = false
 73 |
 74 |     init(key: DefaultsKey<T>, userDefaults: UserDefaults, options: NSKeyValueObservingOptions, handler: @escaping ((Update) -> Void)) {
    |                                                                    `- error: cannot find type 'NSKeyValueObservingOptions' in scope
 75 |         self.key = key
 76 |         self.userDefaults = userDefaults
/host/spi-builder-workspace/Sources/DefaultsObserver.swift:36:26: error: cannot find type 'NSKeyValueChange' in scope
 34 |
 35 |     public struct Update {
 36 |         public let kind: NSKeyValueChange
    |                          `- error: cannot find type 'NSKeyValueChange' in scope
 37 |         public let indexes: IndexSet?
 38 |         public let isPrior: Bool
/host/spi-builder-workspace/Sources/DefaultsObserver.swift:42:21: error: cannot find type 'NSKeyValueChangeKey' in scope
 40 |         public let oldValue: T.T?
 41 |
 42 |         init(dict: [NSKeyValueChangeKey: Any], key: DefaultsKey<T>) {
    |                     `- error: cannot find type 'NSKeyValueChangeKey' in scope
 43 |             // swiftlint:disable:next force_cast
 44 |             kind = NSKeyValueChange(rawValue: dict[.kindKey] as! UInt)!
/host/spi-builder-workspace/Sources/DefaultsObserver.swift:51:41: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 31 | #if !os(Linux)
 32 |
 33 | public final class DefaultsObserver<T: DefaultsSerializable>: NSObject, DefaultsDisposable where T == T.T {
    |                                     `- note: 'T' previously declared here
 34 |
 35 |     public struct Update {
    :
 49 |         }
 50 |
 51 |         private static func deserialize<T: DefaultsSerializable>(_ value: Any?, for key: DefaultsKey<T>) -> T.T? where T.T == T {
    |                                         `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 52 |             guard let value = value else { return nil }
 53 |
/host/spi-builder-workspace/Sources/DefaultsObserver.swift:88:94: error: cannot find type 'NSKeyValueChangeKey' in scope
 86 |
 87 |     // swiftlint:disable:next block_based_kvo
 88 |     public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
    |                                                                                              `- error: cannot find type 'NSKeyValueChangeKey' in scope
 89 |         guard let change = change, object != nil, keyPath == key._key else {
 90 |             return
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/BuiltIns.swift /host/spi-builder-workspace/Sources/Defaults+Observing.swift /host/spi-builder-workspace/Sources/Defaults+StringToBool.swift /host/spi-builder-workspace/Sources/Defaults+Subscripts.swift /host/spi-builder-workspace/Sources/Defaults.swift /host/spi-builder-workspace/Sources/DefaultsAdapter.swift /host/spi-builder-workspace/Sources/DefaultsBridges.swift /host/spi-builder-workspace/Sources/DefaultsKey.swift /host/spi-builder-workspace/Sources/DefaultsKeys.swift /host/spi-builder-workspace/Sources/DefaultsObserver.swift /host/spi-builder-workspace/Sources/DefaultsSerializable.swift /host/spi-builder-workspace/Sources/OptionalType.swift /host/spi-builder-workspace/Sources/PropertyWrappers.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftyUserDefaults -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/Objects-normal/aarch64/SwiftyUserDefaults_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/Objects-normal/aarch64/Modules/SwiftyUserDefaults.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/Objects-normal/aarch64/Modules/SwiftyUserDefaults.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/Objects-normal/aarch64/SwiftyUserDefaults-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/Objects-normal/aarch64/SwiftyUserDefaults-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/Objects-normal/aarch64/SwiftyUserDefaults-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftyUserDefaults.build/Debug-android-aarch64/SwiftyUserDefaults-t.build/Objects-normal/aarch64/Modules/SwiftyUserDefaults.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android